在</body></html>上面几行写:
1
<
script language
=
"
javascript
"
type
=
"
text/javascript
"
>
2
var
ad_float_right_src
=
"
http://images.myetone.com/images/mosh.gif
"
;
3
var
ad_float_right_url
=
"
http://www.mosh.cn/z/man/
"
;
4
var
ad_float_right_type
=
"
jpg
"
;
5
</
script
>
6
<
script src
=
"
floatright_close_v4.js
"
></
script
>
floatright_close_v4.js文件的具体内容:
var
imgheight_close
document.ns
=
navigator.appName
==
"
Microsoft Internet Explorer
"
var
bdy
=
(document.documentElement
&&
document.documentElement.clientWidth)
?
document.documentElement:document.body;
![None.gif](/Images/OutliningIndicators/None.gif)
window.screen.width
>
800
?
imgheight_close
=
120
:imgheight_close
=
120
function
myload()
![ExpandedBlockStart.gif](/Images/OutliningIndicators/ExpandedBlockStart.gif)
{
myright.style.top=bdy.scrollTop+bdy.offsetHeight-imgheight_close;
myright.style.left=bdy.offsetWidth-120;
mymove();
}
function
mymove()
![ExpandedBlockStart.gif](/Images/OutliningIndicators/ExpandedBlockStart.gif)
{
myright.style.top=bdy.scrollTop+bdy.offsetHeight-imgheight_close;
myright.style.left=bdy.scrollLeft+bdy.offsetWidth-120;
setTimeout("mymove();",50)
}
![None.gif](/Images/OutliningIndicators/None.gif)
![ExpandedBlockStart.gif](/Images/OutliningIndicators/ExpandedBlockStart.gif)
function
MM_reloadPage(init)
{ //reloads the window if Nav4 resized
![ExpandedSubBlockStart.gif](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
if (init==true) with (navigator)
{if ((appName=="Netscape")&&(parseInt(appVersion)==4))
{
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(
true
)
![None.gif](/Images/OutliningIndicators/None.gif)
![ExpandedBlockStart.gif](/Images/OutliningIndicators/ExpandedBlockStart.gif)
function
close_float_right()
{
myright.style.visibility='hidden';
}
![None.gif](/Images/OutliningIndicators/None.gif)
![ExpandedBlockStart.gif](/Images/OutliningIndicators/ExpandedBlockStart.gif)
if
(document.ns)
{
document.write("<div id=myright style='position: absolute;width:80;top:0;left:578;visibility: visible;z-index: 1'>\
<style>\
A.closefloat:link,A.refloat:visited {text-decoration:none;color:#000000;font-size:12px}\
A.closefloat:active,A.refloat:hover {text-decoration:underline;color:#0000FF;font-size:12px}\
</style>\
<table border=0 cellpadding=0 cellspacing=0><tr><td>");
![InBlock.gif](/Images/OutliningIndicators/InBlock.gif)
if(ad_float_right_type!="swf")
document.write("<a href='" + ad_float_right_url + "' target = '_blank'><img src='" + ad_float_right_src + "' WIDTH=80 HEIGHT=80 border = 0></a>");
![ExpandedSubBlockStart.gif](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
else
{
document.write("<div id='ad_float_right_div'></div>");
var objFlash = new sinaFlash(ad_float_right_src, "ad_float_right", "80", "80", "7", "#ffffff");
objFlash.addParam("quality", "high");
objFlash.addParam("wmode", "opaque");
objFlash.write("ad_float_right_div");
}
![InBlock.gif](/Images/OutliningIndicators/InBlock.gif)
document.write("</td></tr><tr><td width=80 height=20 align=right><a href='javascript:close_float_right();void(0);'><b><font color=#ff0000>关闭</font></b></a></td></tr>\
</table>\
</div>");
![InBlock.gif](/Images/OutliningIndicators/InBlock.gif)
myload()
}