Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common JavaScript web page special effects

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you "what are the common JavaScript web page special effects", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "what are the common JavaScript web page special effects" this article.

5 special effects of JavaScript web page

Dynamic subtitle

Code: add where needed

Features: JavaScript web page special effects when you point the mouse to the subtitle stop and link, remove the mouse pointer subtitle and scroll again, the use of the above code can be achieved.

Extension: dynamic subtitles have an attribute "direction", which controls the direction of subtitle scrolling. By changing the property of "direction" to "up", you can scroll upward, and when changed to "down", scroll down, then "left" and "right" naturally turn to the left and right.

Automatic refresh

Code: adding between and of a web page

Explanation: if your home page has a welcome page and you want it to be transferred to your home page after 15 seconds, you can use the above code, and the time can be changed to the time you want. Let's take a look at how to close the window in JavaScript web effects.

Close the window

① as a button

Code: add where you need it

Explanation: the result of this code is to close the current page with a button.

② as a link

Code: add where you need it

Close the window

The result of this code is to close the current page with a link.

③ timing shutdown

Code: adding between and of a web page

Explanation: after adding this code, the web page will automatically close after 3 seconds (3000 represents 3000 milliseconds, that is, 3 seconds).

Inverse continuous arrangement

Code: add where needed

Inverse continuation column

Features: what do you do when you need to reverse a paragraph in JavaScript web effects? Enter it one by one on the contrary? As long as you use the above code, you can achieve it.

The underlining of a web page

Code: adding between and of a web page

These are all the contents of this article entitled "what are the common JavaScript web special effects?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report