我想把其中的
酷CS网
这两个从我的MDB的数据库中的webinfo id值为 SHUQIANG SHUQIANGDIZHI 这2句中获取
以下是个书签的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
{}
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("web_ad").style.top=parseInt(document.getElementById
("web_ad").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
suspendcode="<DIV id=\"web_ad\" ><a onclick=\"window.external.addFavorite(' http://www.cs.com','酷CS网');\" href='#'><img src='images/SQ.gif' width='80' height='120' border='0' /></a></div>"
document.write(suspendcode);
window.setInterval("heartBeat()",1);