一个网站上的js 对联广告 我需要一个这个网站http://www.alixixi.com/,首页两侧的对联广告代码显示精美韩国商业模板的那个但是我弄了很久都取不出来,谁帮我取下,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script> lastScrollY=0;function heartBeat(){ var diffY;if (document.documentElement && document.documentElement.scrollTop) diffY = document.documentElement.scrollTop;else if (document.body) diffY = document.body.scrollTopelse {/*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);}//from alixixi.comsuspendcode12="<DIV id=\"lovexin12\" style='left:0;POSITION:absolute;TOP:190px;width:18px;height:220px;background:#efefef'><a href='http://shop.alixixi.com/' target='_blank'><img src='http://www.alixixi.com/adsview/ad1.gif'></a></div>"suspendcode14="<DIV id=\"lovexin14\" style='right:0;POSITION:absolute;TOP:190px;width:18px;height:220px;background:#efefef''><a href='http://shop.alixixi.com/?p=1777' target='_blank'><img src='http://www.alixixi.com/adsview/ad2.gif'></a></div>"document.write(suspendcode12); document.write(suspendcode14); window.setInterval("heartBeat()",1); </script> 用firebug去,三下五除二就搞定了。 如何把若干下拉列表里面的内容合并在一起输出到一个文本域内-急! js 正式表达式 长度控制 多组单选框与复选框 验证 php代码改成java代码的问题 一个css的问题 关于一个javascript拖曳类的问题 有个地方看不明白 高手求救! 如何能高效的批量生成DIV 关于时间格式的问题 JQ $(this).attr("clientHeight") 获取不到数据! 按照李站的甘露模型写的一个声明类的函数,可以声明类和继承,请各位高手看看我的和它的区别在哪里,谢谢 如何使我做的页面直接执行JS,而不需要进行安全验证。
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);
}//from alixixi.com
suspendcode12="<DIV id=\"lovexin12\" style='left:0;POSITION:absolute;TOP:190px;width:18px;height:220px;background:#efefef'><a href='http://shop.alixixi.com/' target='_blank'><img src='http://www.alixixi.com/adsview/ad1.gif'></a></div>"
suspendcode14="<DIV id=\"lovexin14\" style='right:0;POSITION:absolute;TOP:190px;width:18px;height:220px;background:#efefef''><a href='http://shop.alixixi.com/?p=1777' target='_blank'><img src='http://www.alixixi.com/adsview/ad2.gif'></a></div>"
document.write(suspendcode12);
document.write(suspendcode14);
window.setInterval("heartBeat()",1);
</script>