<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Title> code.js.cn </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
<Style type = "text/CSS">
Body, HTML {margin: 0; padding: 0; font-size: 12px; font-family: Arial; Font: 12px/1 Helvetica, tahoma, Arial, \ 5b8b \ 4f53, sans-serif ;}
. Fixedmask {position: fixed; display: none; top: 0; left: 0; Z-index: 999; width: 100%; Height: 100%; Background: #000; filter: alpha (opacity = 30); opacity: 0.3 ;}
* HTML {Background: URL (*) fixed ;}
* Html body {margin: 0; Height: 100% ;}
* HTML. fixedmask {position: absolute; left: expression (documentelement. scrollleft + documentelement. clientwidth-this. offsetwidth); top: expression (documentelement. scrolltop + documentelement. clientheight-this. offsetheight );}
# Ad {width: 570px; Height: 345px; Border: 1px solid #333; border-top-width: 5px; position: absolute; Z-index: 9999; left: 50%; margin-left:-290px; top: 50%; margin-top:-175px; display: none ;}
# Ad a {display: block; position: absolute; text-Decoration: none; Right: 0; top: 0px; Font: 12px/1.5 Arial; Background: # b50000; padding: 2px 5px; color: # FFF ;}
# Ad A: hover {Background: red ;}
</Style>
</Head>
<Body>
<IFRAME scrolling = "no" src = "http://qq.com" style = "width: 100%; Height: 1000px"> </iframe>
<Div id = "ad">
<A href = "#1"> close </a>
</Div>
</Body>
<SCRIPT type = "text/JavaScript">
// <! [CDATA [
Alert (turn off automatically in 5 seconds! ');
Function mask (){
If (mask. instance) return mask. instance;
This. El = Document. Body. appendchild (document. createelement ('div '));
This. El. classname = 'fixedmask ';
Mask. instance = this;
};
Mask. Prototype = {
Show: function (FN ){
This. El. style. Display = 'block ';
FN & FN ();
},
Hide: function (FN ){
This. El. style. Display = 'none ';
FN & FN ()
}
};
VaR x = new mask ();
VaR ad = Document. getelementbyid ('ad ');
Ad. getelementsbytagname ('A') [0]. onclick = hide;
X. Show (function (){
Ad. style. Display = 'block ';
});
SetTimeout (hide, 5000 );
Function hide (){
X. Hide (function (){
Ad. style. Display = 'none ';
})
}
//]>
</SCRIPT>
</Html>