floatleft_close.js 代码
var imgheight_close
var imgleft
window.screen.width>800 ? imgheight_close=550:imgheight_close=300
window.screen.width>800 ? imgleft=2:imgleft=2
function myload()
{
myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight_close;
myleft.style.left=imgleft;
leftmove();
}
function leftmove()
{
myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight_close;
myleft.style.left=imgleft;
setTimeout("leftmove();",50)
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
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)
function close_float_left(){
myleft.style.visibility='hidden';
}
浮动广告条代码
<script LANGUAGE='JavaScript'>
var ad_float_right_src = "xxx.gif";
var ad_float_right_url = "xxx.htm";
var ad_float_right_type = "";
</script>
<script src="floatright.js"></script>
<SCRIPT language=JavaScript>
var ad_float_left_src = "xxx.gif";
var ad_float_left_url = "xxx.htm";
var ad_float_left_type = "";
</SCRIPT>
<SCRIPT src="floatleft_close.js"></SCRIPT>
floatright.js代码
var imgheight
window.screen.width>800 ? imgheight=550:imgheight=300
function myload()
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myright.style.left=document.body.offsetWidth-120;
mymove();
}
function mymove()
{
myright.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight;
myright.style.left=document.body.scrollLeft+document.body.offsetWidth-120;
setTimeout("mymove();",300)
}
function MM_reloadPage(init) { //reloads the window if Nav4 resized
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)
function close_float_right(){
myright.style.visibility='hidden';
}