【www.gdgbn.com--手机软件】
链接一
链接二
链接三
链接四
<script language="网页特效">
marqueesheight=200;
with(marquees){
style.width=0;
style.height=marqueesheight;
style.overflowx="visible";
style.overflowy="hidden";
nowrap=true;
onmouseo教程ver=new function("stops教程croll=true");
onmouseout=new function("stopscroll=false");
}
document.write("");
pretop=0; currenttop=0;getlimit=0;stopscroll=false;
function init(){
templayer.innerhtml="";
while(templayer.offsetheight
}
marquees.innerhtml+=templayer.innerhtml;
setinterval("scrolldown()",10);
}init();
function scrolldown(){
if(stopscroll==true) return;
pretop=marquees.scrolltop;
marquees.scrolltop-=1;
if(pretop==marquees.scrolltop){
if(!getlimit){
marquees.scrolltop=templayer.offsetheight*2;
getlimit=marquees.scrolltop;
}
marquees.scrolltop=getlimit-templayer.offsetheight+marqueesheight;
marquees.scrolltop-=1;
}
}
</script>
向上滚动文件代码
链接一
链接二
链接三
链接四
<script language="javascript">
marqueesheight=200;
stopscroll=false;
with(marquees){
style.width=0;
style.height=marqueesheight;
style.overflowx="visible";
style.overflowy="hidden";
nowrap=true;
onmouseover=new function("stopscroll=true");
onmouseout=new function("stopscroll=false");
}
document.write("");
pretop=0; currenttop=0;
function init(){
templayer.innerhtml="";
while(templayer.offsetheight
}
marquees.innerhtml=templayer.innerhtml+templayer.innerhtml;
setinterval("scrollup()",100);
}
document.body.onload=init;
function scrollup(){
if(stopscroll==true) return;
pretop=marquees.scrolltop;
marquees.scrolltop+=1;
if(pretop==marquees.scrolltop){
marquees.scrolltop=templayer.offsetheight-marqueesheight;
marquees.scrolltop+=1;
}
}
</script>
本代码由http://www.111cn.net/" target="_blank">站长资源网|111cn.net收集并整理!