zoukankan      html  css  js  c++  java
  • jquery垂直公告滚动实现代码

    公告滚动想必大家都有见到过吧,实现方法也有很多,下面为大家介绍使用jquery实现垂直公告滚动,感兴趣的朋友不要错过
    复制代码代码如下:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <title>jquery垂直公告滚动-www.jbxue.com</title> 
    <script src="jquery-1.7.2.js"></script> 
    <style> 
    *{ 
    padding:0px; 
    margin:0px; 

    ul{ 
    list-style:none; 

    li{ 
    line-height:30px; 

    </style> 
    </head> 

    <body> 
    <ul> 
    <li>1111</li> 
    <li>22222</li> 
    <li>3333</li> 
    <li>44444</li> 
    <li>5555</li> 
    <li>66666</li> 
    </ul> 
    <script> 
    setInterval(function(){ 
    var newList=$('ul :first').clone(true); 
    $('ul').append(newList); 
    $('ul :first').remove(); 
    },2000); 

    </script> 
    </body> 
    </html> 
  • 相关阅读:
    [转载]苹果推送通知服务
    Lovekey
    大数阶乘的位数
    大明A+B
    大数取余
    A+Bcoming
    大数取余(C++)
    验证角谷猜想
    麦森数(转)
    大数阶乘的位数(C++)
  • 原文地址:https://www.cnblogs.com/linuxnotes/p/3464588.html
Copyright © 2011-2022 走看看