侧边滚动广告栏
作者:cmscn 日期:2007-02-12
<div id="pop" style="RIGHT: 30px; LEFT: 805px; WIDTH: 199px; POSITION: absolute; TOP: 302; HEIGHT: 144px"><a href=#none onclick="window.open('celebration.htm','','width=560,height=592')"><img src="03.jpg" width="198" height="144" border="0"></a></div>
<SCRIPT language=JavaScript>
<!--
var lastScrollY = 0;
function floatRefresh() {
diffY = document.body.scrollTop;
percent =.1*(diffY-lastScrollY);
if(percent>0){
percent = Math.ceil(percent);
}else{
percent = Math.floor(percent);
}
document.all.pop.style.pixelTop += percent;
lastScrollY = lastScrollY + percent;
}
window.setInterval("floatRefresh()",1);
//-->
</SCRIPT>
评论: 8 | 引用: 0 | 查看次数: 1077
发表评论