


An example to explain the intermittent scrolling effect of text line by line upwards implemented by jQuery
This article mainly introduces the intermittent scrolling effect of text line by line upwards implemented by jQuery, and involves the operation skills related to jQuery's dynamic transformation of page element styles based on time functions. Friends who need it can refer to it. I hope it can help everyone.
The running effect diagram is as follows:
<!doctype html> <html> <head> <meta charset="utf-8"> <title>www.jb51.net jQuery文字逐行向上滚动代码</title> <link href="css/index.css" rel="external nofollow" rel="stylesheet" type="text/css"> <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script> <style> *{ margin:0px; padding:0px; font-family:'微软雅黑'; -webkit-tap-highlight-color:rgba(0,0,0,0); } li{ list-style:none } img{ border:none} a{text-decoration:none;} /* -------------------------摇奖排行榜----------------------------------- */ .Top_Record{} .record_Top{width:90%; height:50px; text-align:center; line-height:50px; margin:30px auto 0px; color:#000;} .topRec_List dl,.maquee{ width:90%; overflow:hidden; margin:0 auto; color:#7C7C7C} .topRec_List dd{ float:left; text-align:center; border-bottom:1px solid #1B96EE; color:#1B96EE;} .topRec_List dl dd:nth-child(1){ width:17%; height:40px; line-height:40px; } .topRec_List dl dd:nth-child(2){ width:18%; height:40px; line-height:40px; } .topRec_List dl dd:nth-child(3){ width:25%; height:40px; line-height:40px; } .topRec_List dl dd:nth-child(4){ width:40%; height:40px; line-height:40px; } .maquee{ height:195px;} .topRec_List ul{ width:100%; height:195px;} .topRec_List li{ width:100%; height:38px; line-height:38px; text-align:center; font-size:12px; border-bottom: 1px dashed #aaa;} /*.topRec_List li:nth-child(2n){ background:#077cd0}*/ .topRec_List li p{ float:left;} .topRec_List li p:nth-child(1){ width:17%;} .topRec_List li p:nth-child(2){ width:18%;} .topRec_List li p:nth-child(3){ width:25%;} .topRec_List li p:nth-child(4){ width:40%;} .apple a{display:block; text-decoration:none;} .apple,.aa{ width:90%; height:50px; overflow:hidden; margin:30px auto; border:1px solid #1B96EE;} .apple a,.aa a{ width:100%; height:50px; line-height:50px; text-indent:20px; color:#1B96EE;} .aa {word-wrap:break-word;line-height:50px; color:#1B96EE;} </style> </head> <body> <p class="Top_Record"> <p class="record_Top">摇奖排行榜</p> <p class="topRec_List"> <dl> <dd>编号</dd> <dd>姓名</dd> <dd>奖项</dd> <dd>时间</dd> </dl> <p class="maquee"> <ul> <li> <p>1</p> <p>王**</p> <p>中了30元</p> <p>2014/12/30 14:20</p> </li> <li> <p>2</p> <p>王**</p> <p>中了30元</p> <p>2014/12/30 14:20</p> </li> <li> <p>3</p> <p>王**</p> <p>中了30元</p> <p>2014/12/30 14:20</p> </li> <li> <p>4</p> <p>王**</p> <p>中了30元</p> <p>2014/12/30 14:20</p> </li> <li> <p>5</p> <p>王**</p> <p>中了30元</p> <p>2014/12/30 14:20</p> </li> <li> <p>6</p> <p>王**</p> <p>中了30元</p> <p>2014/12/30 14:20</p> </li> <li> <p>7</p> <p>王**</p> <p>中了30元</p> <p>2014/12/30 14:20</p> </li> <li> <p>8</p> <p>王**</p> <p>中了30元</p> <p>2014/12/30 14:20</p> </li> </ul> </p> </p> </p> <script type="text/javascript"> function autoScroll(obj){ $(obj).find("ul").animate({ marginTop : "-39px" },1000,function(){ $(this).css({marginTop : "0px"}).find("li:first").appendTo(this); }) } $(function(){ var scroll=setInterval('autoScroll(".maquee")',1500); $(".maquee").hover(function(){ console.log("aaa"); clearInterval(scroll); },function(){ scroll=setInterval('autoScroll(".maquee")',1500); }); }); </script> </body> </html>
javascript Single line of text scrolls upward to display the marquee_Advertising code
Based on jquery, the text runs upward to resemble a marquee effect_jquery
jquery single line text upward scrolling effect implementation code_javascript skills
The above is the detailed content of An example to explain the intermittent scrolling effect of text line by line upwards implemented by jQuery. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

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

First, draw a circle in PPT, then insert a text box and enter text content. Finally, set the fill and outline of the text box to None to complete the production of circular pictures and text.

When we create Word documents on a daily basis, we sometimes need to add dots under certain words in the document, especially when there are test questions. To highlight this part of the content, the editor will share with you the tips on how to add dots to text in Word. I hope it can help you. 1. Open a blank word document. 2. For example, add dots under the words "How to add dots to text". 3. We first select the words "How to add dots to text" with the left mouse button. Note that if you want to add dots to that word in the future, you must first use the left button of the mouse to select which word. Today we are adding dots to these words, so we have chosen several words. Select these words, right-click, and click Font in the pop-up function box. 4. Then something like this will appear

How to implement dual WeChat login on Huawei mobile phones? With the rise of social media, WeChat has become one of the indispensable communication tools in people's daily lives. However, many people may encounter a problem: logging into multiple WeChat accounts at the same time on the same mobile phone. For Huawei mobile phone users, it is not difficult to achieve dual WeChat login. This article will introduce how to achieve dual WeChat login on Huawei mobile phones. First of all, the EMUI system that comes with Huawei mobile phones provides a very convenient function - dual application opening. Through the application dual opening function, users can simultaneously

The programming language PHP is a powerful tool for web development, capable of supporting a variety of different programming logics and algorithms. Among them, implementing the Fibonacci sequence is a common and classic programming problem. In this article, we will introduce how to use the PHP programming language to implement the Fibonacci sequence, and attach specific code examples. The Fibonacci sequence is a mathematical sequence defined as follows: the first and second elements of the sequence are 1, and starting from the third element, the value of each element is equal to the sum of the previous two elements. The first few elements of the sequence

How to implement the WeChat clone function on Huawei mobile phones With the popularity of social software and people's increasing emphasis on privacy and security, the WeChat clone function has gradually become the focus of people's attention. The WeChat clone function can help users log in to multiple WeChat accounts on the same mobile phone at the same time, making it easier to manage and use. It is not difficult to implement the WeChat clone function on Huawei mobile phones. You only need to follow the following steps. Step 1: Make sure that the mobile phone system version and WeChat version meet the requirements. First, make sure that your Huawei mobile phone system version has been updated to the latest version, as well as the WeChat App.

In today's software development field, Golang (Go language), as an efficient, concise and highly concurrency programming language, is increasingly favored by developers. Its rich standard library and efficient concurrency features make it a high-profile choice in the field of game development. This article will explore how to use Golang for game development and demonstrate its powerful possibilities through specific code examples. 1. Golang’s advantages in game development. As a statically typed language, Golang is used in building large-scale game systems.

PHP Game Requirements Implementation Guide With the popularity and development of the Internet, the web game market is becoming more and more popular. Many developers hope to use the PHP language to develop their own web games, and implementing game requirements is a key step. This article will introduce how to use PHP language to implement common game requirements and provide specific code examples. 1. Create game characters In web games, game characters are a very important element. We need to define the attributes of the game character, such as name, level, experience value, etc., and provide methods to operate these

Title: jQuery Tips: Quickly modify the text of all a tags on the page In web development, we often need to modify and operate elements on the page. When using jQuery, sometimes you need to modify the text content of all a tags in the page at once, which can save time and energy. The following will introduce how to use jQuery to quickly modify the text of all a tags on the page, and give specific code examples. First, we need to introduce the jQuery library file and ensure that the following code is introduced into the page: <
