Simple implementation of JavaScript-html title scrolling effect
As shown below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:///TR/xhtml1/DTD/"> <html xmlns="http:///1999/xhtml"> <head> <meta content="text/html;charset=utf-8" http-equiv="content-type"> <title>Passion web game</title> </head> <script type="text/javascript" charset="utf-8"> var s="Passionate web game...".split(""); alert("OK"); function func(){ (s[0]); ();// Remove the first element of the array = (""); } setInterval(func,1000);//Set the time interval to run</script> <boty></boty> </html>
The simple implementation of the above JavaScript-html title scrolling effect is all the content I share with you. I hope you can give you a reference and I hope you can support me more.
Related Articles
js solves the mobile problem of movebox
This article mainly introduces in detail to you js to solve the moving box problem, cancel the default drag event of the image. Interested friends can refer to it.2016-03-03JavaScript reference type Array instance analysis
This article mainly introduces the JavaScript reference type Array, and combines the example form to analyze various common operation techniques related to JavaScript array creation, detection, conversion, sorting, stack, queue, and reference. Friends who need it can refer to it.2018-07-07JS achieves the effect of similar shutter pull-down menu
The shutter pull-down menu effect is very good. Today, the editor will share with you a piece of js code to achieve similar shutter pull-down menu effect. For friends who need it, please refer to it.2016-12-12NodeJS and Mysql interaction sample code
Implementing the interaction between NodeJS and Mysql First install Mysql Module into NodeJS. The specific implementation and results are shown below. Friends who have this need can refer to it. I hope it will be helpful to everyone.2013-08-08When scrolling to the top of the page, the instance code is fixed on the top
When scrolling a page is implemented using Javascript, the DIV is fixed to the top when it reaches the top. The effect is a bit flashing under IE. The specific code is as follows. Interested friends can refer to it.2013-05-05JavaScript achieves the effect of falling snowflakes
This article mainly introduces JavaScript to achieve the effect of falling snowflakes. The sample code in the article is introduced in detail and has a certain reference value. Interested friends can refer to it.2020-12-12Summary of the method of removing duplicates in ES5 ES6 of Array objects
This article mainly introduces the relevant information on removing duplicates from Array objects. The article introduces in detail the method of removing duplicates from Array objects in ES5 and ES6 through sample code. Friends who need it can refer to it. Let’s take a look together below.2017-04-04Method of countdown of text input in javascript text box
This article mainly introduces the method of countdown of text input in JavaScript text box, involving JavaScript's operation skills for keyboard events, and has certain reference value. Friends who need it can refer to it.2015-02-02Analysis of pure function usage of JavaScript Functional Programming
This article mainly introduces the use of pure functions of JavaScript Functional Programming. It analyzes the concepts related to the functional dependence of pure functions, transparency and other concepts in JavaScript Functional Programming. Friends who need it can refer to it.2019-05-05Ideas for realizing js imitation WeChat voice playback
This article mainly introduces the implementation ideas of JS imitation WeChat voice playback in detail, which has certain reference value. Interested friends can refer to it.2016-12-12