Sometimes we need to remind the user that there is a new message that can be implemented using the following method.
The effect is that when the page window has no focus and is minimized, the title bar "title" of the page window displays the "" "", "" new message "flashing effect.
<script language= "JavaScript" > SetTimeout (' Flash_title () ', 2000); Call once function Flash_title () {//When the window effect is minimized, or if the focus is not isminstatus () () () () () {Newmsgcount () ()
;
else {document.title= ' Order Management Center-aooxing ';//the default title content Window.clearinterval () when there is no message in the window;
}//message prompts Var flag=false;
function Newmsgcount () {if (flag) {flag=false;
Document.title= ' "New Order";
}else{flag=true;
Document.title= ' "";
} window.settimeout (' Flash_title (0) ', 380);
//Determine if the window is minimized//can not display var ismin = False in opera; function Isminstatus () {//In addition to Internet Explorer browsers, other mainstream browsers support window Outerheight and Outerwidth properties if (Window.outerwidth!= Undefined && window.outerheight!= undefined) {ismin = window.outerwidth <= 160 && Window.outerheig
HT <= 27;
}else{ismin = window.outerwidth <= 160 && window.outerheight <= 27; //In addition to Internet Explorer browsers, other mainstream browsers support window ScreenY and Screenx properties if (Window.screeny!= UndefinEd && Window.screenx!= undefined) {ismin = Window.screeny < -30000 && Window.screenx <-30000; FF Chrome}else{ismin = window.screentop < -30000 && Window.screenleft < -30000;//ie} r
Eturn ismin; } </script>