Popup window popup Effect
<Html>
<Head>
<Title> Popup </title>
<Meta http-equiv = "content-type" content = "text/html; charset = UTF-8"/>
<SCRIPT language = JavaScript1.2>
Var oPopup = window. createPopup ();
Var popTop = 50;
Function popmsg (msgstr ){
Var winstr = "<table style = \" border: 1 solid #101112 \ "width = \" 355 \ "height = \" 180 \ "border = \" 0 \ "cellpadding = \" 5 \ "cellspacing = \" 0 \ "bgcolor = \" # F8F8F8 \ "> ";
Winstr + = "<tr> <td height = \" 167 \ "> </td> <td align = \" center \ "> <table width = \" 100% \ "height = \" 153 \ "border = \" 0 \ "cellpadding = \" 0 \ "cellspacing = \" 0 \ "> ";
Winstr + = "<tr> <td valign = \" top \ "style = \" font-size: 12px; color: # F81919; face: Tahoma; \ ">" + msgstr + "</td> </tr> </table> ";
OPopup.doc ument. body. innerHTML = winstr;
Popshow ();
}
Function popshow (){
Window. status = popTop;
If (popTop & gt; 1720 ){
ClearTimeout (mytime );
OPopup. hide ();
Return;
} Else if (popTop> 1520 & popTop <1720 ){
OPopup. show (screen. width-250, screen. height, 355, 1720-poptop );
} Else if (popTop> 1500 & popTop <1520 ){
OPopup. show (screen. width-250, screen. height + (popTop-1720), 355,160 );
} Else if (popTop <180 ){
OPopup. show (screen. width-250, screen. height, 355, popTop );
} Else if (popTop <220 ){
OPopup. show (screen. width-250, screen. height-popTop, 355,180 );
}
PopTop + = 10;
Var mytime = setTimeout ("popshow ();", 50 );
}
Popmsg ("text ....");
</SCRIPT>
</Head>
<Body>
</Body>
</Html>