نسخ رمز رمز على النحو التالي:
<!
<html xmlns = "http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv = "content-type" content = "text /html ؛ charset = utf-8" /> />
<title> الإعلان عن الشريط الجانبي </title>
<type type = "text/css">
# -show: 100px.
</style>
<script type = "text/javaScript">
window.onscroll = window.onresize = window.onload = function () {{)
var odiv = document.getElementById ("show") ؛
var stop = document.documentElement.scrolltop || docume
الخامس
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" ؛
}
}