在图片的点击事件里,控制对象的scrollTop 和 scrollLeft属性就可以了.
解决方案 »
- 如何确保标签<a>执行onclick事件后执行href
- 堆糖网首页,美丽说 2级页面 口碑网评论社区的布局问题
- fancybox 谁用过,那个图片放大怎么顶置?
- jquery的弹出层插件哪种比较好?
- 怎么给accordion的title赋值?
- 请教大家来了!
- 这样的问题怎么解决?
- 如何在用了<object data="xx.htm">后用脚本来控制 object里面的表单元素的值或innerHtml
- 在JavaScript中,怎样才能在本地打印一个远程的文本文件?
- 如何在调用对象事件的时候出发另一个对象的已绑定事件
- 用脚本加载image和map后的关联问题
- 请问这是什么意思啊var p = [ ['test',null],];
<div style="float:left;width:100px;background:#F00;height:100px;margin-right:10px;" onmouseover="document.getElementById('ice').start()" onmouseout="document.getElementById('ice').stop()">
移过来
</div>
<marquee id="ice" style="float:left;width:200px;height:100px;border:1px solid #000" behavior="scroll" direction="up">
我想用一个小图片来控制旁边的一段内容的上下滚动,上鼠标移到这个图片上时,旁边的内容就向上或者向下滚动。
请高手指教~
</marquee>
</body>
<div style="float:left;width:100px;background:#F00;height:100px;margin-right:10px;" onmouseover="document.getElementById('demo').start()" onmouseout="document.getElementById('demo').stop()">
移过来
</div>
<marquee id="demo" style="float:left;width:100px;height:100px;border:1px solid #000" behavior="scroll" direction="up" scrollamount =1 >
56756</marquee>
</body>
<div style="float:left;width:100px;background:#F00;height:100px;margin-right:10px;" onmouseover="ice.direction='up';document.getElementById('ice').start()" onmouseout="document.getElementById('ice').stop()">
向上~
</div>
<marquee id="ice" style="float:left;width:200px;height:100px;border:1px solid #000" behavior="scroll">
我想用一个小图片来控制旁边的一段内容的上下滚动,上鼠标移到这个图片上时,旁边的内容就向上或者向下滚动。
请高手指教~
</marquee>
<div style="float:left;width:100px;background:#F00;height:100px;margin-right:10px;" onmouseover="ice.direction='down';document.getElementById('ice').start()" onmouseout="document.getElementById('ice').stop()">
向下~
</div>
</body>