当前位置:文档之家› 平面网页滚动图片代码

平面网页滚动图片代码

<nobr>
<div id="marqueediv8" style="width:831px;height:120px;overflow:hidden; "> <img src="images/" width="150" height="120" border="0"/> <img src="images/" width="150" height="120" border="0" /> <img src="images/" width="150" height="120" border="0"/> <img src="images/" width="150" height="120"border="0" /> <img src="images/" width="150" height="120" border="0"/> <img src="images/" width="150" height="120"border="0" /> <img src="images/" width="150" height="120" border="0"/> <img src="images/" width="150" height="120"border="0" /> <img src="images/" width="150" height="120" border="0"/> <img src="images/" width="150" height="120"border="0" /> <img src="images/" width="150" height="120" border="0"/> <img src="images/" width="150" height="120"border="0" /> <img src="images/" width="150" height="120" border="0"/> <img src="images/" width="150" height="120" border="0"/> </div>
</nobr>
<script>
=function(){
new Marquee(
"marqueediv8", //容器ID<br />
2, //向上滚动(0向上1向下2向左3向右)<br />
1, //滚动的步长<br />
831, //容器可视宽度<br />
120, //容器可视高度<br />
30, //定时器数值越小,滚动的速度越快(1000=1秒,建议不小于20)<br />
0, //间歇停顿时间(0为不停顿,1000=1秒)<br />
0, //开始时的等待时间(0为不等待,1000=1秒)<br />
0//间歇滚动间距(可选)<br />
);
};
</script>
<script>
function Marquee(){
=(arguments[0]);
=arguments[1];
=arguments[2];
=arguments[3];
=arguments[4];
=arguments[5];
=arguments[6];
=arguments[7];
if(arguments[8]){=arguments[8];}else{=>1?:;}
====0;
"hidden";
=>1? (this,,,;
}
=function(){();}
=function(){
if==1){setTimeout,waittime);}
else{clearInterval; ==0; =setInterval,timer);}
}
=function(){=1; clearInterval; setTimeout,waittime);} =function(){
=setInterval,timer);
clearInterval;}
if==0){clearInterval; =setInterval,timer);}}
}
setTimeout,stoptime);
}
switch{
case 0:
+=;
if>=&&>0){ (); return;}
else{if break;
case 1:
+=;
if>=&&>0){ (); return;}
else{if break;
case 2:
+=;
if>=&&>0){ (); return;}
else{if break; case 3:
+=;
if>=&&>0){ (); return;}
else{if break; }
}
</script>。

相关主题