威尼斯赌博游戏

产品无缝滚动特效

来源: www.luyouqiwo.com| 2017-02-18 12:39
<!-- 代码开始 -->
<style type="text/css"> 
<!-- 
#demo { 
background: #FFF; 
overflow:hidden; 
border: 1px dashed #CCC; 
width: 756px; 
} 
#demo img { 
border: 3px solid #F2F2F2; 
} 
#indemo { 
float: left; 
width: 800%; 
} 
#demo1 { 
float: left; 
} 
#demo2 { 
float: left; 
} 
--> 
</style> 
<div id="demo"> 
<div id="indemo"> 
<div id="demo1"> 
	      {dede:arclist row='10' orderby ='rand' typeid='2'}
			<li><a href="[field:arcurl/]" target="_blank"><img src="[field:litpic/]" alt="[field:title/]" width="130" height="130" border="0"/></a><br><a href="[field:arcurl/]" target="_blank">[field:title/]</a></li>
           {/dede:arclist}
</div> 
<div id="demo2"></div> 
</div> 
</div> 
<script> 
<!-- 
var speed=10; 
var tab=document.getElementById("demo"); 
var tab1=document.getElementById("demo1"); 
var tab2=document.getElementById("demo2"); 
tab2.innerHTML=tab1.innerHTML; 
function Marquee(){ 
if(tab2.offsetWidth-tab.scrollLeft<=0) 
tab.scrollLeft-=tab1.offsetWidth 
else{ 
tab.scrollLeft++; 
} 
} 
var MyMar=setInterval(Marquee,speed); 
tab.onmouseover=function() {clearInterval(MyMar)}; 
tab.onmouseout=function() {MyMar=setInterval(Marquee,speed)}; 
--> 
</script> 
<!-- 代码结束 -->

猜你喜欢
推荐
随机推荐
相关文档
Top
Baidu