<div class="codetitle"> <span><a style="CURSOR: pointer" data="88164" class="copybut" id="copybut88164" onclick="doCopy('code88164')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code88164"> <br><script language="javascript" src="lirms/Test/jquery%20-1.4.2.js"></script> <br><script language="javascript" src="lirms/Test/vticker.js"></script> <br><script type="text/javascript"> <BR>$(document).ready(function() { <BR>$(".roll").each(function() { <BR>$(this).vTicker({ <BR>showItems : 18, //顯示滾動行數<BR>pause : 3000, //滾動間歇<BR>speed : 500, //滾動速度<BR>animation : "fade", <BR>mousePause : false, <BR>direction : " up", //捲動方向<BR>}); <BR>}); <BR>}); <BR></script> <br> </div> <br>似乎只有透過div-ul-li標籤嵌套的方式才能實現表格多行多列的滾動效果(如有改進的地方,請多多指教!) <br><div class="codetitle"><span><a style="CURSOR: pointer" data="79878" class="copybut" id="copybut79878" onclick="doCopy('code79878')"><u>複製程式碼</u></a></span></div>複製程式碼<div class="codebody" id="code79878"> <br><br> 程式碼如下:<br><br> <br><div class="conn"> <br><table> <br><tr> <br><th style="width:50px;">序號 <br> </th> <th style="width:150px;">名稱</th> <br><th style="width:80px;">季度完成量</th> <br><th style="width:50px;">昨天</th> <br><th style="width:70px;">完成進度</th> <br><th style="width:80px;">基本指標 th> <br> </th> <th style="width:70px;">挑戰指標</th> <br> </tr> <br><tr> <br><td colspan="7"> <br> <br><ul> <br><foreach items="${statislist}" var="s" varstatus="i"> <br><set var="cs " value=""></set> <br><set var="index" value=""></set> <br><if test="${i.index < 9 }"> <br><set var="index" value="0"></set> <br></if> <br><if test="${ i.index % 2==0}"> <br><set var="cs" value="background:#ebf6fd;"></set> <br></if> <br><li style="height:30px;width:550px;line-height:30px;${cs}"> <br><div style="width:50px;text-align:center;float:left;"> ${index} ${i.count}</div> <br><div style="width:150px;text-align:center;float:left;">${s.name}</div> <br><div style="width:80px;text-align:center;float:left;">${s.number}</div> <br><div style="width:50px;text-align:center; float:left;">${s.zuori}</div> <br><div style="width:70px;text-align:center;float:left;">${s.wcjb}</div> <br><div style="width:80px;text-align:center;float:left;">${s.jbzb}</div> <br><div style="width:70px;text-align: center;float:left;">${s.tzzb}</div> <br> </li> <br></foreach> <br> </ul> <br> <br> </td> </tr> </table> </div> </div>