lastScrollY=0;
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("lovexin12").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";
document.getElementById("lovexin14").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
suspendcode12="<DIV id=\"lovexin12\" style='left:1px;POSITION:absolute;TOP:200px;'></div>"
suspendcode14="<DIV id=\"lovexin14\" style='right:1px;POSITION:absolute;TOP:200px;'><a href='online_edit.php' onClick='window.open(this.href,,top=50,left=50,width=750,height=576,scrollbars=no,resizable=no);return false;' target='_blank'><img src='../images/main/online_edit.png' WIDTH=56 HEIGHT=305 border=0></img></a><br/></div>"
document.write(suspendcode12);
document.write(suspendcode14);
window.setInterval("heartBeat()",1);这是一个页面上右边漂浮的JS
suspendcode14="<DIV id=\"lovexin14\" style='right:1px;POSITION:absolute;TOP:200px;'><a href='online_edit.php' onClick='window.open(this.href,,top=50,left=50,width=750,height=576,scrollbars=no,resizable=no);return false;' target='_blank'><img src='../images/main/online_edit.png' WIDTH=56 HEIGHT=305 border=0></img></a><br/></div>"
中<a href='online_edit.php' onClick='window.open(this.href,,top=50,left=50,width=750,height=576,scrollbars=no,resizable=no);return false;' target='_blank'>的onClick没有起作用,窗口不出来本正确的是弹出一个窗口,请帮我看一下,谢谢……
function heartBeat(){
var diffY;
if (document.documentElement && document.documentElement.scrollTop)
diffY = document.documentElement.scrollTop;
else if (document.body)
diffY = document.body.scrollTop
else
{/*Netscape stuff*/}
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("lovexin12").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";
document.getElementById("lovexin14").style.top=parseInt(document.getElementById("lovexin12").style.top)+percent+"px";lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
suspendcode12="<DIV id=\"lovexin12\" style='left:1px;POSITION:absolute;TOP:200px;'></div>"
suspendcode14="<DIV id=\"lovexin14\" style='right:1px;POSITION:absolute;TOP:200px;'><a href='online_edit.php' onClick='window.open(this.href,,top=50,left=50,width=750,height=576,scrollbars=no,resizable=no);return false;' target='_blank'><img src='../images/main/online_edit.png' WIDTH=56 HEIGHT=305 border=0></img></a><br/></div>"
document.write(suspendcode12);
document.write(suspendcode14);
window.setInterval("heartBeat()",1);这是一个页面上右边漂浮的JS
suspendcode14="<DIV id=\"lovexin14\" style='right:1px;POSITION:absolute;TOP:200px;'><a href='online_edit.php' onClick='window.open(this.href,,top=50,left=50,width=750,height=576,scrollbars=no,resizable=no);return false;' target='_blank'><img src='../images/main/online_edit.png' WIDTH=56 HEIGHT=305 border=0></img></a><br/></div>"
中<a href='online_edit.php' onClick='window.open(this.href,,top=50,left=50,width=750,height=576,scrollbars=no,resizable=no);return false;' target='_blank'>的onClick没有起作用,窗口不出来本正确的是弹出一个窗口,请帮我看一下,谢谢……
解决方案 »
- 为什么显示Microsoft JScript 运行时错误: 缺少函数
- 求助:在火狐中this.style.display 无效的问题
- 小白请教:字符串中,如何取得[ 、]之间的子字符串,正则表达式怎么写呢?
- 跨页面cookies值有变化
- JS如何打开一个窗口后,间隔一定的时间再关闭它。
- Javascript - Select操作大集合[ZZ]
- 急求Firefox下JS问题,style.display
- 高分100!!页面的提交按扭的焦点问题
- 求救!!!!能不能不限定iframe的高度,让它所调用的外部文件的文档长度来决定iframe的高度?
- 请问在javascript中。如何去掉一个字符串两头的空格
- json获取arraylist格式的数据
- Html,js 初学者跪求大神介绍js读取td的值
<a href='online_edit.php' onclick='window.open(this.href,"","top=50,left=50,width=750,height=576,scrollbars=no,resizable=no");return false' target='_blank'>bd</a>
<a onclick='window.open(this.href,"标题自己取","top=50,left=50,width=750,height=576,scrollbars=no,resizable=no");return false;' href='online_edit.php' target='_blank'>