Do you know common JavaScript webpage effects? Here is a brief description. For example, when you point the mouse to a subtitle, the subtitle stops and links it. If you move the mouse pointer to the subtitle and Scroll it again, you can use the above Code to implement it.
JavaScript webpage effects 5
Dynamic subtitles
Code: Add as needed
- <marqueeonmouseovermarqueeonmouseover=this.stop()
- onmouseout=this.start()>
-
Features: when you point your mouse to a subtitle in a JavaScript webpage effect, the subtitle stops and links it. When you move the mouse pointer to the subtitle and Scroll it, you can use the above Code.
Extension: a dynamic subtitle has a property "direction", which controls the direction of subtitle scrolling. you can scroll up by changing the property of "direction" to "up, similarly, if it is changed to "down", it will scroll down, so "left" and "right" are naturally left and right.
Auto refresh
Code: add between webpages
- <metahttpequivmetahttpequiv="refresh"content="15;url=cesi.htm">
-
Explanation: If you have a welcome page on your homepage and want it to be displayed 15 seconds later, you can use the above Code to change the time you want. Next, let's take a look at how to close the window in JavaScript webpage special effects.
Close Window
① By button
Code: Add as needed
- <INPUTonclickINPUTonclick = window. close () type = buttonvalue = close the window>
-
Explanation: the result of this Code is to close the current page with a button.
② Link
Code: Add as needed
- <Ahrefahref = "#" onClick = "window. close ();
- Returnfalse; "> close the window
-
-
Explanation: the result of this Code is a link to close the current page.
③ Timed Shutdown
Code: add between webpages
- <scriptlanguagescriptlanguage="JavaScript">
-
Explanation: after this code is added, the webpage will be automatically closed 3 seconds after it is opened (3000 represents 3000 milliseconds, that is, 3 seconds ).
Reverse sorting
Code: Add as needed
- <Bdodirbdodir = "rtl"> reverse Columns
-
Features: What do you do when you need to reverse the line in JavaScript webpage special effects? Is it input one by one? You only need to use the above Code.
Web page underline
Code: add between webpages
- <StyleTypeStyleType="text/css">
-
Introduction: many of my friends think that the underlines under those links are very eye-catching. After the above Code is added, the underscores are only given when the visitor points to the link.