/***7 * Description : * 左边贴底浮动 LBM (LeftBottomMove) */ //初始化变量 LBM_sImageName = "/webup/Files/2009-10/200910162105556779.jpg"; // 图片名 LBM_sClickUrl = "http://221.10.90.50/webgps"; // 点击链接 LBM_sImageUrl = ""; // 图片URL LBM_iImageWidth = parseInt("80"); // 图片宽度 if (isNaN(LBM_iImageWidth)) LBM_iImageWidth = 80; LBM_iImageHeight = parseInt("120"); // 图片高度 if (isNaN(LBM_iImageHeight)) LBM_iImageHeight = 120; image_left = 10; // 图片左边距 image_bottom = 5; // 图片下边距 time_out = 500; // 调整位置时间间隔 scrollbar_width = 20; // 滚动条宽度 document.ns = navigator.appName == "Netscape"; // 浏览器类型 // 显示广告内容 function LBM_ShowContent(ImageUrl, ImageName, iWidth, iHeight) { var str, pos; if (ImageUrl!="") { //image not played by adverisement system str = /.swf/; pos = ImageUrl.search(str); if (pos==-1) document.write(""); else document.write("\n\n\n\n"); } else if (ImageName!="") { //image played by adverisement system str = /.swf/; pos = ImageName.search(str); if (pos==-1) document.write(""); else document.write("\n\n\n\n"); } } // 加载广告 function LBM_Load() { if (document.ns) { document.write(""); LBM_ShowContent(LBM_sImageUrl, LBM_sImageName, LBM_iImageWidth, LBM_iImageHeight); document.write(""); } else { document.write("
"); LBM_ShowContent(LBM_sImageUrl, LBM_sImageName, LBM_iImageWidth, LBM_iImageHeight); document.write("
"); } LBM_Move(); } // 浮动广告 function LBM_Move() { if(document.ns) { document.LBM_Div.pageY = pageYOffset + (window.innerHeight - iImageHeight) - scrollbar_width - image_bottom; document.LBM_Div.pageX = pageXOffset + image_left; } else { LBM_Div.style.top = document.body.scrollTop + (document.body.offsetHeight - LBM_iImageHeight) - scrollbar_width - image_bottom; LBM_Div.style.left = document.body.scrollLeft + image_left; } setTimeout("LBM_Move();", time_out); } //-- start LBM_Load(); //-- end 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);