Home
Web Front-end
JS Tutorial
jquery scrolling component (vticker.js) realizes the scrolling effect of dynamic data on the page_jquery



jquery scrolling component (vticker.js) realizes the scrolling effect of dynamic data on the page_jquery
May 16, 2016 pm 05:30 PM
jquery scroll
dynamic data
Copy code The code is as follows:
<script language="javascript" src="lirms/Test/ jquery-1.4.2.js"></script>
<script language="javascript" src="lirms/Test/vticker.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".roll").each(function() {
$(this).vTicker( {
showItems : 18, //Display the number of scrolling lines
pause : 3000, //Scrolling interval
speed : 500, //Scrolling speed
animation : "fade",
mousePause : false,
direction : "up", //Scroll direction
});
});
});
</script>
It seems that the scrolling effect of multiple rows and columns of the table can only be achieved by nesting div-ul-li tags (if there are any improvements, please give me your advice!)
Copy the code The code is as follows:
<div class="conn">
<table>
<tr>
<th style="width:50px;">Serial number</th>
<th style="width:150px;">Name</th>
<th style=" width:80px;">Quarterly completed volume</th>
<th style="width:50px;">Yesterday</th>
<th style="width:70px; ">Completion Progress</th>
<th style="width:80px;">Basic Indicators</th>
<th style="width:70px;">Challenge Indicators</th>
</tr>
<tr>
<td colspan="7">
<div class="roll">
<ul>
<c:forEach items="${statislist}" var="s" varStatus="i">
<c:set var="cs" value=""> ;</c:set>
<c:set var="index" value=""></c:set>
<c:if test="${i.index < 9 }">
<c:set var="index" value="0"></c:set>
</c:if>
<c :if test="${i.index % 2==0}">
<c:set var="cs" value="background:#ebf6fd;"></c:set>
</c:if>
<li style="height:30px;width:550px;line-height:30px;${cs}">
<div style="width :50px;text-align:center;float:left;">${index} ${i.count}</div>
<div style="width:150px;text-align:center; float:left;">${s.name}</div>
<div style="width:80px;text-align:center;float:left;">${s.number} </div>
<div style="width:50px;text-align:center;float:left;">${s.zuori}</div>
<div style= "width:70px;text-align:center;float:left;">${s.wcjb}</div>
<div style="width:80px;text-align:center;float: left;">${s.jbzb}</div>
<div style="width:70px;text-align:center;float:left;">${s.tzzb}< /div>
</li>
</c:forEach>
</ul>
</div>
</td>
< /tr>
</table>
</div>
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article
Two Point Museum: Bungle Wasteland Location Guide
4 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot tools Tags

Hot Article
Two Point Museum: Bungle Wasteland Location Guide
4 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Replace String Characters in JavaScript

HTTP Debugging with Node and http-console
