如何用图片实现IE右侧滚动条的功能
2007-07-13 16:19
399 查看
在页面中插入iframe不想带滚动条,想用两张图片的点击实现iframe的滚动条的上下滚动,不知如何解决,请帮我一下好么,谢谢
用这个: [html] <script language="JavaScript"> function movstar(a,time){ movx = setInterval('mov(' + a + ')',time); } function movover(){ clearInterval(movx); } function mov(a){ scrollx = new_date.document.body.scrollLeft; scrolly = new_date.document.body.scrollTop; scrolly = scrolly + a; new_date.window.scroll(scrollx,scrolly); } </script> <center> <table height="100" cellspacing="0" cellpadding="0" width="500" border="0"> <tr> <td width="300"><iframe name="new_date" src="http://bbs.blueidea.com/" width="100%" height="100" border="0" frameborder="no" marginwidth="0" marginheight="0" scrolling="no"></iframe></td> <td> <p><input type="button" value="↑" onMouseOver="movstar(-1,20);" onMouseOut="movover();"></p> <p> </p> <p><input type="button" value="↓" onMouseOver="movstar(1,20);" onMouseOut="movover();"></p> </td> </tr> </table> [/html] |
相关文章推荐
- 进击的KFC:iOS WebView 如何通过js获取网页中所有图片并加入点击事件,实现浏览图片的功能
- 如何实现lazyload的图片延迟加载功能(1/2)
- 实例讲解Android中如何实现图片的异步加载功能
- Android 如何实现分享图片功能
- c# .net中如何实现图片防盗链功能的代码实例
- 如何通过js实现图片预览功能【附实例代码】
- 图片放大功能如何做?jquery实现
- 如何实现点击图片之后放大,或缩放功能。
- [PHP]移动端网页如何使用JqueryMobile+PHP实现上传图片的功能
- JavaScript实现本地图片上传预览功能(兼容IE、chrome、FF)
- 实例讲解Android中如何实现图片的异步加载功能
- CKeditor如何实现图片上传功能
- 如何通过js实现图片预览功能
- rdlc报表 打印图片功能如何实现
- 如何在App中实现朋友圈功能之四在朋友圈中添加发送图片功能——箭扣科技Arrownock
- 如何有效实现前端压缩图片并上传功能
- 如何用input标签和jquery实现多图片的上传和回显功能
- [置顶] viewPager+photoView实现图片轮播和手势缩放功能 支持手势缩放的imageView 如何实现相册左右滑动和手势缩放 如何让图片自适应控件大小 photoView如何使用(上)
- 如何用图片或按钮控制IE上下滚动条的移动???
- javascript实现IE、Firefox兼容的图片渐变功能