The external page is similar to the MSN pop-up prompt for the ultimate version of the script (can only run in IE !)

Source: Internet
Author: User
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> 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.