//从ASP的变量获取网站地址 function getServerSrc(){ var ServerSrc="http://life.zseso.com/"; var Point=ServerSrc.substr(ServerSrc.length-1,1); if(Point=="/") ServerSrc=ServerSrc.substring(0,ServerSrc.length-1); return ServerSrc; // var ServerAllSrc=document.getElementById("TopMenuJS").src.toLowerCase() // var CutHeadStr=ServerAllSrc.replace("http://",""); // return "http://"+CutHeadStr.substring(0,CutHeadStr.indexOf("/")); } //从ASP的变量获取网站商标(LOGO) function getSiteLogo(){ return "/images/logo/0760/logo_180x54.jpg"; } //从ASP的变量获取天气地址 function getWeatherUrl(){ return "http://www.265.com/weather/59485.htm"; } function getSiteCityId(){ var CityId="12"; return CityId; } function printTopBanner(){ var TopLogoCenter=document.getElementById("TopLogoCenter"); var isDelayAction=true; if(typeof(vipModule)!="function") isDelayAction=false; if(typeof(vipFileType)!="function") isDelayAction=false; if(typeof(vipHTML)!="function") isDelayAction=false; if(!TopLogoCenter) isDelayAction=false; if(!isDelayAction){ setTimeout(printTopBanner,1000); return; } document.getElementById("TopLogoCenter").innerHTML=vipModule("index_a1","write"); } //输出顶部菜单HTML代码 function printTopMenuHTML(){ var ServerSrc=getServerSrc(); var SiteLogo=getSiteLogo(); var WeatherUrl=getWeatherUrl(); document.write(''); document.write(''); document.write('
'); document.write('
'); document.write(' '); document.write(' 首页'); document.write(' 商家资讯'); document.write(' 会员活动'); document.write(' 生活资讯'); document.write(' 商家相册'); document.write(' 互动问答'); document.write(' 代理商家'); document.write(' 同城信息'); document.write(' 优惠券'); document.write(' '); document.write(' '); document.write(' '); document.write(' 收藏本站 '); document.write(' 设为主页'); document.write(' '); document.write('
'); document.write('
'); } document.write(''); printTopMenuHTML(); printTopBanner();