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

Hot Article

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Replace String Characters in JavaScript Replace String Characters in JavaScript Mar 11, 2025 am 12:07 AM

Replace String Characters in JavaScript

jQuery Check if Date is Valid jQuery Check if Date is Valid Mar 01, 2025 am 08:51 AM

jQuery Check if Date is Valid

jQuery get element padding/margin jQuery get element padding/margin Mar 01, 2025 am 08:53 AM

jQuery get element padding/margin

Top 5 Date Manipulation JS Plugins Top 5 Date Manipulation JS Plugins Feb 28, 2025 am 12:34 AM

Top 5 Date Manipulation JS Plugins

10 Worth Checking Out jQuery Plugins 10 Worth Checking Out jQuery Plugins Mar 01, 2025 am 01:29 AM

10 Worth Checking Out jQuery Plugins

10 jQuery Accordions Tabs 10 jQuery Accordions Tabs Mar 01, 2025 am 01:34 AM

10 jQuery Accordions Tabs

jquery add scrollbar to div jquery add scrollbar to div Mar 01, 2025 am 01:30 AM

jquery add scrollbar to div

HTTP Debugging with Node and http-console HTTP Debugging with Node and http-console Mar 01, 2025 am 01:37 AM

HTTP Debugging with Node and http-console

See all articles