standard-compliant couplet ads
// Alert (diffy );
Percent =. 1 * (diffy-lastscrolly );
If (percent> 0) percent = math. Ceil (percent );
Else percent = math. Floor (percent );
Document. getelementbyid ("leftdiv"). style. Top = parseint (document. getelementbyid ("leftdiv"). style. Top) + percent + "PX ";
Document. getelementbyid ("rightdiv"). style. Top = parseint (document. getelementbyid ("leftdiv"). style. Top) + percent + "PX ";
Lastscrolly = lastscrolly + percent;
// Alert (lastscrolly );
}
// After the following paragraph is deleted, the couplet will not move along with the screen.
Window. setinterval ("Heartbeat ()", 1 );
// -->
</SCRIPT>
<Style type = "text/CSS">
<! --
/* The page height is defined here. It is used to test the effect of the couplet following, and has nothing to do with advertising */
HTML, body {Height: 1000px ;}
# Mm {Height: 1000px ;}
/* Set couplet style drops */
# Leftdiv, # rightdiv {
Width: 120px;/* width */
Height: 250px;/* height */
Background-color: # e5e5e5;/* Background Color */
Border: 1px solid # DDD;/* border style */
Position: absolute;/* absolute positioning activation */
}
-->
</Style>
</Head>
<Body>
<Div id = "leftdiv" style = "Top: 120px;/* 120px from top */left: 2px; /* 2 px from the left */"> advertisement content on the left </div>
<Div id = "rightdiv" style = "Top: 120px;/* 120px from top */right: 2px; /* 2 PX */"> right ad content </div>
<Div id = "mm">
</Div>
</Body>
</Html>