车神

专注MS.NET技术
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

如何用图片实现IE右侧滚动条的功能

Posted on 2007-07-13 16:19  车神  阅读(385)  评论(0)    收藏  举报
在页面中插入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]