Home >Web Front-end >JS Tutorial >jQuery code to make new messages flash in the webpage title_jquery

jQuery code to make new messages flash in the webpage title_jquery

WBOY
WBOYOriginal
2016-05-16 17:17:391128browse

Some webmasters may notice this effect. When we browse some SNS social networking and community forums, we often see flashing title prompts for new messages received. So can we apply this effect to our own websites? Well, how to achieve the effect of flashing the title of the new message on the web page? The editor was fortunate enough to see such code on a certain awesome technology blog, based on the jquery framework.

In order to solve the problem that some web page special effects cannot display the effect after running (for example, jQuery needs to be refreshed), Script House has specially added a web version demonstration.

Copy code The code is as follows:





< title>My JSP 'test.jsp' starting page



Please see the effect of the page title!


The prompt disappears after 10 seconds







If the effect cannot be displayed, please press Ctrl F5 to refresh this page. More webpage codes:
http://www.jb51.net/



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn