1、我的框架代码 <frameset rows="*" cols="50%,50%" framespacing="0" frameborder="no" border="0">
<frame name="nrright" id="nrright" src="http://www.xxx.xxx" scrolling="yes" noresize="noresize" title="" />
<frame name="nrleft" id="nrleft" src="http://www.xxx.xxx" scrolling="yes" noresize="noresize" title="" />
</frameset>
2、载入页面的js函数
function OpenNewHM(){
self.parent.nrright.location='http://www.xxx。xx';
self.parent.nrleft.location='http://www.xxx.xxx';
}
我想通过js在框架中动态载入页面,然后由程序模拟鼠标滚动条,自动滚动道我指定的位置。
我认为存在的问题:
1、如何判断页面已经加载完毕,只有加载完毕才好滚动吧 自己想的
2、模拟滚动frame nrright 及 nrleft 中的页面;谢谢各位了!
<frame name="nrright" id="nrright" src="http://www.xxx.xxx" scrolling="yes" noresize="noresize" title="" />
<frame name="nrleft" id="nrleft" src="http://www.xxx.xxx" scrolling="yes" noresize="noresize" title="" />
</frameset>
2、载入页面的js函数
function OpenNewHM(){
self.parent.nrright.location='http://www.xxx。xx';
self.parent.nrleft.location='http://www.xxx.xxx';
}
我想通过js在框架中动态载入页面,然后由程序模拟鼠标滚动条,自动滚动道我指定的位置。
我认为存在的问题:
1、如何判断页面已经加载完毕,只有加载完毕才好滚动吧 自己想的
2、模拟滚动frame nrright 及 nrleft 中的页面;谢谢各位了!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货