News-by-article scrolling plugin based on jquery

Source: Internet
Author: User

Demo Page HTML code

1 <!DOCTYPE HTML>2 <HTML>3     <Head>4         <MetaCharSet= "UTF-8">5         <title></title>6         <style>7         8 . Tui_news_lists{9 width:400px;Ten Height:30px; One Line-height:30px; A Overflow:Hidden; - Border:1px solid #dcdcdc; -             } the . tui_news_lists ul{ - Padding-left:10px; - Margin-top:0; -             } + . tui_news_lists Li{ - Height:30px; + Line-height:30px; A width:100%; at Overflow:Hidden; - Text-overflow:ellipsis; - White-space:nowrap; - List-style:None; -             } - . tui_news_lists Li a{ in text-decoration:None; - font-size:14px; to Color:#333; +             } -         </style> the          *         <Scriptsrc= "Js/jquery-1.11.1.min.js"></Script> $         <Scriptsrc= "Js/newsscroll.js"></Script>Panax Notoginseng          -         <Script> the         $(function(){ +             $(". Tui_news_lists"). Newsscroll ({ A                 "Hoverstop":true, the                 "Spacetime": the +             }); -         }) $         </Script> $     </Head> -     <Body> -         <Divclass= "Tui_news_lists"> the             <ul> -                 <Li><ahref="###">New rules for the sharing of bicycles: services for children under 12 years of age are prohibited</a></Li>Wuyi                 <Li><ahref="###">People's daily newspaper talk about reverse news: Many Big V frequently beaten face</a></Li> the                 <Li><ahref="###">Experts explain Beijing why the uneven rainfall distribution this sweltering return</a></Li> -                 <Li><ahref="###">The disappearance of the United States soldiers in the South China Sea in this area repeatedly "embarrassing"</a></Li> Wu                 <Li><ahref="###">From the Wei West to Li Wenxing Internet Enterprises are not responsible for entrap how many people</a></Li> -                 <Li><ahref="###">These people in the army are not writing history books, but they are equally important.</a></Li> About             </ul> $         </Div> -          -     </Body> - </HTML>

Demo Effect

Plugin download

Github:https://github.com/hulihuli/newsscroll/blob/master/newsscroll/js/newsscroll.js

News-by-article scrolling plugin based on jquery

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.