<div class="codetitle"> <span><a style="CURSOR: pointer" data="32761" class="copybut" id="copybut32761" onclick="doCopy('code32761')"><u>複製程式碼</u></a></span>如下程式碼:</div> <div class="codebody" id="code32761"> <br>場//EN" "http://www.w3.org/TR/html4/loose.dtd"><br><br> <br> <title>新文件</title> <br> <style type="text/css"><BR> *{margin:0;padding:0;}<BR> ul{list-style:none except none}<BR> .slchanpinpin001{寬度:001{寬度; :1px 純橘色;邊距:55px 自動}<BR> .slchanpin001-t{高度:25px;背景:橘色}<BR> .slchanpin001-c{寬度:200px;高度: 60px; }<BR> .slchanpin001-c li{float:left;寬度:200px;高度:60px;背景:紅色;}<BR> .slchanpingCon01{}:60px;位置:絕對;頂部:0;左:0; <BR> </style> <br> <br> <br> <div class="slchanpin001"> <br> <br> </div> <br> <div class="slchanpin001-c"> <br> <div class="slchanpingCon01" id="slchanpingCon01"> <br> 2<br> <li>3</li> <br> <li>4<br> </li> <li>5</li> <br> <li>5</li> <br> <li>5</li> <br> 🎜> <li>7</li> <br> <li>8</li>> ;<br> <li> >10 </li> <br> <li>10</li> <br> <br> </div> <br> 🎜> <script type="text/javascript"><BR> var sl = function(id){ return document.getElementById(id)}<BR> var speed = 0;<BR> var i=0;<br> function slProdust (){<br> var slchanpingCon01 = sl("slchanpingCon01").getElementsByTagName("li");<BR> slDivWidth = slchanpingCon01[0].offsetWidth * slchanpingCon01 .length;<BR> slElem.style.width = slDivWidth "px" > -slDivWidth ){<BR>速度--;<BR><BR> slElem.style.left = speed "px"<BR> }<BR> 🎜> timer = 。 ><BR><BR><BR></script> </div> </div>