/** * 跳转,应用于notifaction **/ function getjumper(id,timeout){ if (!timeout) { return false; } var force_re = new regexp("_force$","i"); timeout = (timeout<3)?timeout:3; timeout = timeout * 1000; window.settimeout(function(){ var link = $("#" + id).children("a:first"); if (force_re.test(link.attr("target")) || "jumpertarget" == id ) { document.location = link.attr("href"); }else{ link.click(); } return true; }, timeout); return true; } (function($){ $(function(){ (function(){ /** * 通告 **/ var notibox = $("._notibox",top.document); var top_notiboxbody = $("._notiboxbody",notibox); function top_hidebox(){ top_notiboxbody.hide(); notibox.hide(); } $("._close",notibox).click(function(){ top_hidebox(); }); var showmsg = function(msg){ top_hidebox(); notibox.show(); var noti = $("._notimsg",notibox); noti.html(msg); noti.show(); } window.showmsg = showmsg; })(); /** * 右框架上部导航 */ $("._droplist").each(function(){ var selfobj = $(this); var _open = selfobj.find("._open"); var _list = selfobj.find("._list"); var _close = selfobj.find("._close"); _list.hide(); _close.hide(); _open.click(function(){ _close.show(); _list.slidedown(); }); _close.click(function(){ _list.slideup(); _close.hide(); }); }); /** * 刷新 */ $("._refresh").click(function(){ dorefresh(); }); /** * 后退 */ $("._back").click(function(){ try{ window.history.go(-1); }catch(e){ try{ window.back(); }catch(ex){ } } }); /** * 后退 */ $("._go,._forward").click(function(){ try{ window.history.go(+1); }catch(e){ try{ window.back(); }catch(ex){ } } }); /** * 帮助 */ $("._help").each(function(){ var self = $(this); var open = self.find("._open"); var content = self.find("._content"); var close = self.find("._close"); content.hide(); close.hide(); open.click(function(){ close.show(); content.slidedown(); }); close.click(function(){ content.slideup(); close.hide(); }); }); }); })(jquery);