您的位置:首页 > 其它

如何用图片实现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]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: