Provides various official and user-released code examples. For code reference, you are welcome to share and learn about the source code for the new reminder title flashing effect. | can be directly copied and pasted for use.
Var newRemindFlag = 1; // start flashing
/*
PageTitle: the title of the original page
ShowRemind: the display of the flash, such as [new reminder]
HideRemind: The Hidden stuff when flashing, such 【]
Time: The time of the blinking interval.
*/
Function newRemind (pageTitle, showRemind, hideRemind, time ){
If (newRemindFlag = 1 ){
Document. title = showRemind + pageTitle;
NewRemindFlag = 2;
} Else {
Document. title = hideRemind + pageTitle;
NewRemindFlag = 1;
}
SetTimeout ("newRemind ('" + pageTitle + "', '" + showRemind + "', '" + hideRemind + "'," + time + ")", time );
}
AD: truly free, domain name + VM + enterprise mailbox = 0 RMB