请问如何能控制iframe页面的滚动?(20分) 应该这样写parent.document.B.scrollUp();parent属性获取上一层window对象 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在被框架引用的页面里<body style="overflow:auto"> to fluxayxxx(阿茂) :我是要在页面A里控制B的滚动的,怎么还能用parent?没有再上一层Window了。to shyslysky(飞天) :我是要通过连接控制滚动,不要滚动条. 问题在于window对象好像没有scrollUp这个方法。 <SCRIPT language="javascript"><!--function movstar(a,time){ movx=setInterval("mov("+a+")",10)}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>... ...<iframe border=0 frameborder=0 framespacing=0 height='100%' marginheight=0 marginwidth=0 name=new_date noResize scrolling=no src="littlehtml/news.htm" width='100%' vspale="0"></iframe>... ...<img onMouseDown="movover();movstar(-8,2)" onMouseOut="movover()" onMouseOver="movstar(-1,20)" onMouseUp="movover();movstar(-1,20)" height=11 src="images/up.jpg" width=11 border=0 alt=":::向上:::"> thx xjdawu(生于虚幻死于现实) js的问题火狐和IE jquery如何获取另一个页面上的指定内容 一个奇怪的js错误,求正解! 如下语句该如何修改,请帮忙,谢谢! JS有没有办法调用系统的右键菜单?? 求助笔试题 怎样将光框移到某文本框内容中的最后部分? document..all["Calendar2"].ValueToString为什么取不到值? 在一个页面中如何传递变量的值? js类方法,对象方法,原型的理解 请教 请各路英雄帮帮忙!!!!
<body style="overflow:auto">
<!--
function movstar(a,time){
movx=setInterval("mov("+a+")",10)
}
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>... ...
<iframe border=0 frameborder=0 framespacing=0 height='100%' marginheight=0 marginwidth=0 name=new_date noResize scrolling=no src="littlehtml/news.htm" width='100%' vspale="0"></iframe>
... ...<img onMouseDown="movover();movstar(-8,2)" onMouseOut="movover()" onMouseOver="movstar(-1,20)" onMouseUp="movover();movstar(-1,20)" height=11
src="images/up.jpg" width=11 border=0 alt=":::向上:::">