document.write("
城市
实况[xx-xx xx:xx]:移到此处查看3天预报
") var ifweather=true var menu=[{main:{txt:"易索红榜",url:"/inc_Fun/Top100.asp"},sub:[{txt:"易索财主",url:"/inc_Fun/Top100.asp"},{txt:"易索水王",url:"/inc_Fun/Top100.asp?m_id=1"},{txt:"易索劳模",url:"/inc_Fun/Top100.asp?m_id=2"},{txt:"易索车王",url:"/inc_Fun/Top100.asp?m_id=3"},{txt:"改名狂人",url:"/inc_Fun/Top100.asp?m_id=4"},{txt:"每日水王",url:"/inc_Fun/Top100.asp?m_id=5"},{txt:"每日劳模",url:"/inc_Fun/Top100.asp?m_id=6"}]},{main:{txt:"x 档案",url:"http://x.isso.com.cn"},sub:[{txt:"体育竞猜",url:"http://x.isso.com.cn/bet"},{txt:"删贴查询",url:"http://x.isso.com.cn/club"},{txt:"易索竞拍",url:"http://x.isso.com.cn/auction/"},{txt:"兑换中心",url:"http://x.isso.com.cn/coinTrans/coinTrans.asp"},{txt:"易索乐园",url:"http://k.isso.com.cn"}]},{main:{txt:"易索乐园",url:"http://k.isso.com.cn"},sub:[{txt:"中国象棋",url:"http://k.isso.com.cn/userapp.php?id=1054198"},{txt:"社区便利店",url:"http://k.isso.com.cn/userapp.php?id=1053282"},{txt:"海底总动员",url:"http://k.isso.com.cn/userapp.php?id=1048438"},{txt:"创世纪2012",url:"http://k.isso.com.cn/userapp.php?id=1051195"},{txt:"开心农场",url:"http://k.isso.com.cn/userapp.php?id=1021978"},{txt:"倾城",url:"http://k.isso.com.cn/userapp.php?id=1053201"},{txt:"开心斗地主",url:"http://k.isso.com.cn/userapp.php?id=1028245"},{txt:"快打旋风",url:"http://k.isso.com.cn/userapp.php?id=1044189"},{txt:"麻辣校长",url:"http://k.isso.com.cn/userapp.php?id=1049229"},{txt:"三十六计",url:"http://k.isso.com.cn/userapp.php?id=1044490"}]},{main:{txt:"信息查询",url:""},sub:[{txt:"公交信息",url:"http://www.nbbus.com/serve.asp"},{txt:"航班查询",url:"http://www.ningbo-airport.com/web/Hangban_plan.aspx"},{txt:"长途查询",url:"http://www.nbgy.com/fwzc/QueryBus.aspx"},{txt:"长途订票",url:"http://dzsw.nbgy.com/"},{txt:"交通违法",url:"http://221.136.70.13:8080/index.jsp"}]}] //主菜单 for (var i=0;i"+menu[i].main.txt+"") main.appendTo($("#menu")) } var city=["北京","上海","天津","重庆","杭州","宁波","温州","舟山","海口","厦门","南京","苏州","三亚","青岛","大连","丽江","广州","拉萨","绍兴","金华"] $(function(){ var popClock,todayClock var info={}; info.city=function(){ var x="" for (var i=0;i"+city[i]+"" } else{ x+="
"+city[i]+"
" } } return x } info.popup=function(objthis,text,delayTime,width,height,bgcolor,fontcolor,left,top,tm,padding,ud){ if (tm==undefined) tm=0.9 //默认透明度 if (padding==undefined) padding=5 //默认5像素 if (ud==undefined) ud=0 //默认0往下,1网上,其他数字,则直接去top objthis.find(".box_1").stop(true,true); var p_box=$("
") function a(){ p_box.css({position:"absolute",background:bgcolor,padding:padding}) if (width>0) p_box.css({width:width}) if (height>0) p_box.css({height:height}) var txt=$("

").html(text).css({color:fontcolor}).appendTo(p_box); var box_p=objthis.css({position:"relative"}); p_box.appendTo(box_p).css({opacity:0}).show() //var h=p_box.height(); var h //alert(ud) if (ud==0) h=objthis.height() else if (ud==1) h=-(p_box.height()+(padding+1)*2); else h=0 //=(objthis.height()) //alert (h) p_box.css({left:left,top:h+top}).fadeTo("normal",tm) p_box.hover(function(){ $(this).stop().fadeTo("normal",1) },function(){ $(this).stop().fadeTo("normal",tm) }) } if (delayTime>0){ popClock=setTimeout(a,delayTime)} else{ a() } return p_box } info.popdown=function(objthis){ clearTimeout(popClock); var box_p=objthis var box=box_p.find(".box_1") box.unbind().stop() box.fadeOut("slow",function(){ box_p.css({position:"static"}) box.hide().remove() }) } info.weatherimg=function(img,size){ return "http://club.isso.com.cn/inc_Fun/image/weather/"+size+"_"+img } info.weather=function(){ var x=$("
") for (var i=1;i div").clone() tmp.find(".weatherimg img:eq(0)").attr("src",info.weatherimg(weather[i].img[0],"b")) tmp.find(".weatherimg img:eq(1)").attr("src",info.weatherimg(weather[i].img[1],"b")) tmp.find(".txtline:eq(0)").text(weather[0].city+" "+weather[i].txt[0]) tmp.find(".txtline:eq(1)").text("最高/最低气温:"+weather[i].txt[1]) tmp.find(".txtline:eq(2)").text("风向/风力:"+weather[i].txt[2]) tmp.appendTo(x) } return x } var weather var weather_x var tw=$("#temp") var itw=0,today info.show=function(){ today=weather[0].today $("#city").text(weather[0].city) $("#time").text(weather[0].time) //tw.text(today[itw]) weather_x=info.weather().html()+"
[关闭气象功能]
" } info.today=function(i){ //tw.fadeOut("normal",function(){ tw.text(today[i]) // tw.fadeIn("normal",function(){ // }) //}) } function a(){ if (itw>=today.length) itw=0 info.today(itw) itw++ } $(".main").hover(function(){ var id=$(".main").index($(this)) var x="" for (var i=0;i"+sub.txt+"
" } var w=($(this).width()-2) info.popup($(this),x,0,w,0,"#fff","#000",-5,0,0.8,0) //不能延时,否则下面那句不起作用 $(".menu_sub a").attr("target","_blank") },function(){ info.popdown($(this)) }) $("#weather").hover(function(){ if (weather==undefined) return false var objthis=$(this) var w=objthis.width()-7 info.popup(objthis,weather_x,0,w,0,"#fff","#000",-5,0,0.8,5) },function(){ info.popdown($(this)) }) $("#city").hover(function(){ info.popup($(this),info.city(),200,200,0,"#fff","#000",-5,0,0.8,0,0) },function(){ info.popdown($(this)) }) $(".citylist").live("click",function(){ var city=$(this).text() var citytmp=cityNow cityNow=city var qry={cityName:escape(city)} tw.stop(true,true) clearInterval(todayClock) tw.text("正在获取"+cityNow+"的气象实况") $.getJSON("club/getweather.asp",qry,function(json){ if (json.stat!="OK"){ tw.text(city+json.msg) cityNow=citytmp return false } else{ weather=json.weather itw=0 info.show() todayClock=setInterval(a,2000) } }) }) $(".citylist").live("mouseover",function(){ $(this).css({color:"#fff",background:"#666"}) }) $(".citylist").live("mouseout",function(){ $(this).css({color:"#000",background:"#fff"}) }) $("#ifweather").live("click",function(){ $.get("club/closeweather.asp",function(data){ if (data=="OK"){ weather=null cityNow=null //alert (weather=undefined) clearInterval(todayClock) tw.text("气象已关闭[选任一城市可恢复]") alert("气象已经成功关闭,若要再次打开,只要点击任一城市即可") } }) }) //info.openMsg() //工具条链接新开页 $("#club_tools a").attr("target","_blank") //设置今日实况第一条 if (ifweather) { var cityNow="宁波" var qry={cityName:escape(cityNow)} $.getJSON("club/getweather.asp",qry,function(json){ if (json.stat!="OK"){ $("#weather").text(json.msg) return false } else{ weather=json.weather info.show() todayClock=setInterval(a,2000) } }) } else{ cityNow=null tw.text("气象已关闭[选任一城市可恢复]") } })