It was suspended in a page intermediate layer

<SCRIPT window the FOR EVENT = the onload = Language = "JavaScript">
initAd (); // after the page is loaded, call the function initAd ()
</ SCRIPT>
<Script Language = "JavaScript">
<-!
Function initAd () {
document.all.AdLayer.style.posTop = -200;
// set after excitation onLoad event, advertising layer with respect to the y-direction position is fixed
document.all.AdLayer.style.visibility = 'visible' // layer disposed visible
MoveLayer ( 'adLayer'); // call the function MoveLayer ()
}
function MoveLayer (layerName) {
var x = 20 is; // floating layer is fixed to the x-direction position browser
var y = 200; // floating layer y-direction position is fixed to the browser
var the diff = (y + document.documentElement.scrollTop - document.all.AdLayer.style.posTop) * 90;.
var y = y + document.documentElement.scrollTop - the diff;
the eval ( " document.all. "+ layerName + ".style.posTop = y");
eval ( "document.all." + layerName + ".style.posright = x"); // mobile advertising layer
setTimeout ( "MoveLayer ( 'AdLayer' );", 0); // call the function set after 20 ms MoveLayer ()
}
// ->
</ Script>

 

 

 

 

<div id="AdLayer" style='position:absolute; width:50px; height:50px; z-index:20; visibility:hidden;; right:10px;'>

<a href="#top">顶部</a>

</div>

 

Guess you like

Origin blog.csdn.net/love33jing2012/article/details/7465145