คัดลอกรหัสรหัสดังนี้:
<!
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv = "content-type" content = "text /html; charset = utf-8" /> />
<title> โฆษณาแถบด้านข้าง </title>
<style type = "text/css">
#Show {ความกว้าง: 100px;
</style>
<script type = "text/javascript">
window.onscroll = window.onresize = window.onload = function () {{)
var odiv = document.getElementById ("แสดง");
var stop = document.documentelement.scrolltop ||
V
varm mid = (cheight -odiv.offsetheight) / 2;
// odiv.style.top = parseint (หยุด + mid) + "px";
// จริง ๆ แล้วเบราว์เซอร์หลักจะรู้ต่อไปนี้หากการตัดสิน
if (if (navigator.appversion.indexof ("msie 6")> -1) {
odiv.style.top = parseint (หยุด + mid) + "px";
} อื่น {
odiv.style.top = mid + "px";
-
-