document.writeln(""); document.writeln(""); document.writeln("<\/title>"); document.writeln("<meta http-equiv=\"content-type\" content=\"text\/html;charset=utf-8\">"); document.writeln("<style type=\"text\/css\">"); document.writeln("#msg_win{border:1px solid #C0C0C0;background:#0C72E1;width:240px;position:absolute;right:0;font-size:12px;font-family:Arial;margin:0px;display:none;overflow:hidden;z-index:99;}"); document.writeln("#msg_win .icos{position:absolute;top:2px;*top:0px;right:2px;z-index:9;}"); document.writeln(".icos a{float:left;color:#ffffff;margin:1px;text-align:center;font-weight:bold;width:14px;height:22px;line-height:22px;padding:1px;text-decoration:none;font-family:webdings;}"); document.writeln(".icos a:hover{color:#fff;}"); document.writeln("#msg_title{background:#0C72E1;border-bottom:1px solid #4C84FD;border-top:1px solid #FFF;color:#ffffff;height:25px;line-height:25px;text-indent:5px;}"); document.writeln("#msg_content{margin:0px;margin-right:0;width:240px;height:130px;overflow:hidden;}"); document.writeln("<\/style>"); document.writeln("<\/head>"); document.writeln("<body>"); document.writeln("<div id=\"msg_win\" style=\"display:block;top:490px;visibility:visible;opacity:1;\">"); document.writeln("<div class=\"icos\"><a id=\"msg_min\" title=\"最小化\" href=\"javascript:void 0\">_<\/a><a id=\"msg_close\" title=\"关闭\" href=\"javascript:void 0\">×<\/a><\/div>"); document.writeln("<div id=\"msg_title\">·热点视窗·<\/div>"); document.writeln("<div id=\"msg_content\"><IFRAME name=I10 marginWidth=0 marginHeight=0 src=\"https:\/\/www.fzgsxy.edu.cn\/frame_zhaopin.html\" frameBorder=no width=\"240\" scrolling=no height=130><\/IFRAME><\/div>"); document.writeln("<\/div>"); document.writeln("<script language=\"javascript\">"); document.writeln("var Message={"); document.writeln("set: function() {\/\/最小化与恢复状态切换"); document.writeln("var set=this.minbtn.status == 1?[0,1,\"block\",this.char[0],\"最小化\"]:[1,0,\"none\",this.char[1],\"恢复\"];"); document.writeln("this.minbtn.status=set[0];"); document.writeln("this.win.style.borderBottomWidth=set[1];"); document.writeln("this.content.style.display =set[2];"); document.writeln("this.minbtn.innerHTML =set[3]"); document.writeln("this.minbtn.title = set[4];"); document.writeln("this.win.style.top = this.getY().top;"); document.writeln("},"); document.writeln("close: function() {\/\/关闭"); document.writeln("this.win.style.display = \"none\";"); document.writeln("window.onscroll = null;"); document.writeln("},"); document.writeln("setOpacity: function(x) {\/\/设置透明度"); document.writeln("var v = x >= 100 ? \"\": \"Alpha(opacity=\" + x + \")\";"); document.writeln("this.win.style.visibility = x<=0?\"hidden\":\"visible\";\/\/IE有绝对或相对定位内容不随父透明度变化的bug"); document.writeln("this.win.style.filter = v;"); document.writeln("this.win.style.opacity = x \/ 100;"); document.writeln("},"); document.writeln("show: function() {\/\/渐显"); document.writeln("clearInterval(this.timer2);"); document.writeln("var me = this,fx = this.fx(0, 100, 0.1),t = 0;"); document.writeln("this.timer2 = setInterval(function() {"); document.writeln("t = fx();"); document.writeln("me.setOpacity(t[0]);"); document.writeln("if (t[1] == 0) {clearInterval(me.timer2) }"); document.writeln("},10);"); document.writeln("},"); document.writeln("fx: function(a, b, c) {\/\/缓冲计算"); document.writeln("var cMath = Math[(a - b) > 0 ? \"floor\": \"ceil\"],c = c || 0.1;"); document.writeln("return function() {return [a += cMath((b - a) * c), a - b]}"); document.writeln("},"); document.writeln("getY: function() {\/\/计算移动坐标"); document.writeln("var d = document,b = document.body, e = document.documentElement;"); document.writeln("var s = Math.max(b.scrollTop, e.scrollTop);"); document.writeln("var h = \/BackCompat\/i.test(document.compatMode)?b.clientHeight:e.clientHeight;"); document.writeln("var h2 = this.win.offsetHeight;"); document.writeln("return {foot: s + h + h2 + 2+\"px\",top: s + h - h2 - 2+\"px\"}"); document.writeln("},"); document.writeln("moveTo: function(y) {\/\/移动动画"); document.writeln("clearInterval(this.timer);"); document.writeln("var me = this,a = parseInt(this.win.style.top)||0;"); document.writeln("var fx = this.fx(a, parseInt(y));"); document.writeln("var t = 0 ;"); document.writeln("this.timer = setInterval(function() {"); document.writeln("t = fx();"); document.writeln("me.win.style.top = t[0]+\"px\";"); document.writeln("if (t[1] == 0) {"); document.writeln("clearInterval(me.timer);"); document.writeln("me.bind();"); document.writeln("}"); document.writeln("},10);"); document.writeln("},"); document.writeln("bind:function (){\/\/绑定窗口滚动条与大小变化事件"); document.writeln("var me=this,st,rt;"); document.writeln("window.onscroll = function() {"); document.writeln("clearTimeout(st);"); document.writeln("clearTimeout(me.timer2);"); document.writeln("me.setOpacity(0);"); document.writeln("st = setTimeout(function() {"); document.writeln("me.win.style.top = me.getY().top;"); document.writeln("me.show();"); document.writeln("},600);"); document.writeln("};"); document.writeln("window.onresize = function (){"); document.writeln("clearTimeout(rt);"); document.writeln("rt = setTimeout(function() {me.win.style.top = me.getY().top},100);"); document.writeln("}"); document.writeln("},"); document.writeln("init: function() {\/\/创建HTML"); document.writeln("function $(id) {return document.getElementById(id)};"); document.writeln("this.win=$(\"msg_win\");"); document.writeln("var set={minbtn: \"msg_min\",closebtn: \"msg_close\",title: \"msg_title\",content: \"msg_content\"};"); document.writeln("for (var Id in set) {this[Id] = $(set[Id])};"); document.writeln("var me = this;"); document.writeln("this.minbtn.onclick = function() {me.set();this.blur()};"); document.writeln("this.closebtn.onclick = function() {me.close()};"); document.writeln("this.char=navigator.userAgent.toLowerCase().indexOf(\"firefox\")+1?[\"_\",\"::\",\"×\"]:[\"0\",\"2\",\"r\"];\/\/FF不支持webdings字体"); document.writeln("this.minbtn.innerHTML=this.char[0];"); document.writeln("this.closebtn.innerHTML=this.char[2];"); document.writeln("setTimeout(function() {\/\/初始化最先位置"); document.writeln("me.win.style.display = \"block\";"); document.writeln("me.win.style.top = me.getY().foot;"); document.writeln("me.moveTo(me.getY().top);"); document.writeln("},0);"); document.writeln("return this;"); document.writeln("}"); document.writeln("};"); document.writeln("Message.init();"); document.writeln("<\/script>"); document.writeln("<\/body>"); document.writeln("<\/html>")