Code
< Script >
VaR Opopup;
Try {
Opopup = Window. createpopup ();
} Catch (E ){
Window. Status = ' The pop-up notification message can only be used in IE! ' ;
}
var PopTop = 10 ;
var mytime;
FunctionPopmsg (msgstr ){
If(!Opopup ){
Return;
}
Opopup.doc ument. Body. innerhtml=Msgstr;
Popshow ();
}
Function Popshow (){
// Window. Status = PopTop;
If (PopTop > 1720 ){
Cleartimeout (mytime );
Opopup. Hide ();
Return ;
} Else If (PopTop > = 1720 - 108 && PoPToP <= 1720 ){
Opopup. Show (screen. Width - 200 , Screen. height, 193 , 1720 - PoPToP );
} Else If (PopTop > = 1500 && PoPToP < 1720 - 108 ){
Opopup. Show (screen. Width - 200 , Screen. Height - 220 + (PopTop - 1500 ), 193 , 108 );
} Else If (PopTop <= 108 ){
Opopup. Show (screen. Width - 200 , Screen. height, 193 , PopTop );
}
Else If (PopTop <= 220 ){
Opopup. Show (screen. Width - 200 , Screen. Height - PoPToP, 193 , 108 );
} Else {
// Window. Status = PopTop + "else ";
Opopup. Show (screen. Width - 200 , Screen. Height - 220 , 193 , 108 );
}
PopTop += 10 ;
mytime = setTimeout ( " popshow (); " , 40 );
}
function hidepop () {
cleartimeout (mytime);
opopup. hide ();
}
Popmsg ("<Div onclick = 'window. parent. hidepop () 'title = 'click to hide 'style = 'cursor: pointer; Background-image: URL (http://www.blogjava.net/images/blogjava_net/beansoft/18269/o_qqbg.gif); width: 193; Height: 108; color: white; padding-top: 1em; padding-left: 5; font-size: 11pt; color: white '> <center> <B> blogjava system message <br> Please leave a message or donate money to support beansoft's Java EE learning video. Thank you !! </B> </center> </div>");
</Script>