⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 floatleft_close.js

📁 LyBBS基于Struts1.3/Ajax的架构
💻 JS
字号:
document.ns = navigator.appName == "Microsoft Internet Explorer"

var imgheight_close
var imgleft
window.screen.width>800 ? imgheight_close=120:imgheight_close=120
window.screen.width>800 ? imgleft=15:imgleft=122
function myload()
{
myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight_close;
//myleft.style.top=10;
myleft.style.left=imgleft;
leftmove();
}
function leftmove()
 { 
 myleft.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight_close;
 //myleft.style.top=10;
 myleft.style.left=imgleft;
 setTimeout("leftmove();",200)
 }

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';
}

document.write("<div id=myleft style='position: absolute;width:80;top:300;left:5;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>");

if(document.ns){
if(ad_float_left_type=="false")
	document.write("<a href='" + ad_float_left_url + "' target = '_blank'><img src='" + ad_float_left_src + "' width='"+ad_float_left_width+"' height='"+ad_float_left_height+"' border = 0></a>");
else
	document.write("<EMBED src='" + ad_float_left_src + "' quality=high TYPE='application/x-shockwave-flash' width='"+ad_float_left_width+"' height='"+ad_float_left_height+"'></EMBED>");

document.write("</td></tr><tr><td width='"+ad_float_left_width+"' height='20' align=right><a href='javascript:close_float_left();void(0);'><b><font color=#ff0000>Close</font></b></a></td></tr>"
+"</table>"
+"</div>");

myload()
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -