在页面中插入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] |