次のようにコードコードをコピーします。
<
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<メタhttp-equiv = "content-type" content = "text /html; charset = utf-8" /> />
<title>サイドボード広告</title>
<style type = "text/css">
#show {width:100px;
</style>
<script type = "text/javascript">
window.onscroll = window.onresize = window.onload = function(){{)
var odiv = document.getElementById( "show");
var stop = document.documentlement.scrolltop ||
v
varm mid =(cheight -odiv.offsetheight) / 2;
// odiv.style.top = parseint(stop + mid) + "px";
//実際に主要なブラウザは、判断の場合にのみ次のことを知っています
if(if(navigator.appversion.indexof( "msie 6")> -1){
odiv.style.top = parseint(stop + mid) + "px";
} それ以外 {
odiv.style.top = mid + "px";
}
}