Copy code code as follows:
<! Doctype HTML PUBLIC "-// W3C // DTD XHTML 1.0 Transitional // EN" http://www.w3.org/xhtml1/dtddml1-transitationAl.dtd ">
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv = "content-type" content = "text /html; charset = utf-8" /> />
<Title> Side Board Advertising </Title>
<Style Type = "Text/CSS">
#Show {width: 100px; height: 80px; background:#0F0; Position: FIXED;
</style>
<script type = "text/javascript">
Window.onscroll = Window.onResize = Window.onload = Function () {{)
var odiv = document.GetelementByid ("show");
var stop = document.documentelement.scrolltop || docume
v
varm mid = (Cheight -Odiv.offsetheight) / 2;
// odiv.style.top = PARSEINT (Stop + MID) + "PX"; // Theoretically, only this sentence can be set in the middle
// Actually the major browsers only know the following IF judgment
if (if (navigator.appversion.indexof ("msie 6")> -1) {
odiv.style.top = PARSEINT (Stop + MID) + "PX";
} Else {
odiv.style.top = mid + "px";
}
}