IE browser right script pop-up ad effect code

Source: Internet
Author: User
Tags setinterval visibility
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/>
<title>WWW.Webjx.Com</title>
<body>
<!--Code Begin-->

Do you see the tip of the lower right corner? If not seen, <button onclick=location.reload ();> Refresh </button>
<script language= "JavaScript" >
Window.onload = getmsg;
Window.onresize = Resizediv;
Window.onerror = function () {}
SMS prompt use (Asilas added)
var divtop,divleft,divwidth,divheight,docheight,docwidth,objtimer,i = 0;
function getmsg ()
{
try{
Divtop = parseint (document.getElementById ("Emeng"). style.top,10)
Divleft = parseint (document.getElementById ("Emeng"). style.left,10)
Divheight = parseint (document.getElementById ("Emeng"). offsetheight,10)
Divwidth = parseint (document.getElementById ("Emeng"). offsetwidth,10)
Docwidth = Document.body.clientWidth;
Docheight = Document.body.clientHeight;
document.getElementById ("Emeng"). Style.top = parseint (document.body.scrolltop,10) + docheight + 10;//divHeight
document.getElementById ("Emeng"). Style.left = parseint (document.body.scrollleft,10) + docwidth-divwidth
document.getElementById ("Emeng"). style.visibility= "Visible"
Objtimer = Window.setinterval ("Movediv ()", 10)
}
catch (e) {}
}

function Resizediv ()
{
I+=1
if (i>500) Closediv ()
try{
Divheight = parseint (document.getElementById ("Emeng"). offsetheight,10)
Divwidth = parseint (document.getElementById ("Emeng"). offsetwidth,10)
Docwidth = Document.body.clientWidth;
Docheight = Document.body.clientHeight;
document.getElementById ("Emeng"). Style.top = Docheight-divheight + parseint (document.body.scrolltop,10)
document.getElementById ("Emeng"). Style.left = Docwidth-divwidth + parseint (document.body.scrollleft,10)
}
catch (e) {}
}

function Movediv ()
{
Try
{
if (parseint (document.getElementById ("Emeng"). style.top,10) <= (Docheight-divheight + parseint ( document.body.scrolltop,10)))
{
Window.clearinterval (Objtimer)
Objtimer = Window.setinterval ("Resizediv ()", 1)
}
Divtop = parseint (document.getElementById ("Emeng"). style.top,10)
document.getElementById ("Emeng"). Style.top = DivTop-1
}
catch (e) {}
}
function Closediv ()
{
document.getElementById (' Emeng '). style.visibility= ' hidden ';
if (Objtimer) window.clearinterval (Objtimer)
}
</script>
<div Id=emeng style= "border-right: #455690 1px solid; Border-top: #a6b4cf 1px solid; z-index:99999; left:0px; Visibility:hidden; Border-left: #a6b4cf 1px solid; width:180px; Border-bottom: #455690 1px solid; Position:absolute; top:0px; height:116px; Background-color: #c9d3f3 ">
<table style= "Border-top: #ffffff 1px solid; Border-left: #ffffff 1px solid "cellspacing=0 cellpadding=0 width=" 100% "bgcolor= #cfdef4 border=0>
<TBODY>
<TR>
&LT;TD style= "FONT-SIZE:12PX; Background-image:url (msgtopbg.gif); COLOR: #0f2c8c "width=30 height=24></td>
&LT;TD style= "Font-weight:normal; font-size:12px; Background-image:url (msgtopbg.gif); COLOR: #1f336b; padding-top:4px; padding-left:4px "Valign=center width=" 100% "> Short message hint:</td>
&LT;TD style= "Background-image:url (msgtopbg.gif); padding-top:2px; padding-right:2px "Valign=center align=right width=19><span title= off style=" cursor:hand;color:red;font-size : 12px;font-weight:bold;margin-right:4px "Onclick=closediv () >& #215;</span><!----></td>
</TR>
<TR>
&LT;TD style= "PADDING-RIGHT:1PX; Background-image:url (1msgbottombg.jpg); padding-bottom:1px "Colspan=3 height=90>
<div style= "Border-right: #b9c9ef 1px solid; padding-right:13px; Border-top: #728eb8 1px solid; padding-left:13px; font-size:12px; padding-bottom:13px; Border-left: #728eb8 1px solid; width:100%; COLOR: #1f336b; padding-top:18px; Border-bottom: #b9c9ef 1px solid; height:100% "> You have <font color= #FF0000 >1</font> new Short Message <BR><BR>
<div align=center style= "Word-break:break-all" ><a href= "Javascript:alert (' Hello ')" ><font color= #FF0000 > Click to view SMS </font></a></div

</DIV>
</TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<!--Code over-->
</body>

Large-Scale Price Reduction
  • 59% Max. and 23% Avg.
  • Price Reduction for Core Products
  • Price Reduction in Multiple Regions
undefined. /
Connect with us on Discord
  • Secure, anonymous group chat without disturbance
  • Stay updated on campaigns, new products, and more
  • Support for all your questions
undefined. /
Free Tier
  • Start free from ECS to Big Data
  • Get Started in 3 Simple Steps
  • Try ECS t5 1C1G
undefined. /

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.