/* @ JavaScript @ 作者:xmark @ 功能:在线窗口 @ 日期:20080320 */ var popUpWin=0; var url_image="http://www.huntingpr.com.cn/chat/Web_CHAT/image/style3/"; var url_im="http://www.huntingpr.com.cn/chat/Web_CHAT/page.jsp"; function MM_openBrWindow(theURL,winName,features) { //v2.0 //alert('对不起,暂时停止服务'); //return ; xposition=0; yposition=0; if ((parseInt(navigator.appVersion) >= 4 )) { xposition = (screen.width - 700) / 2; yposition = (screen.height - 480) / 2; } theproperty= features + "location=0," + "menubar=0," + "resizable=0," + "scrollbars=0," + "status=0," + "titlebar=0," + "toolbar=0," + "hotkeys=0," + "screenx=" + xposition + "," //仅适用于Netscape + "screeny=" + yposition + "," //仅适用于Netscape + "left=" + xposition + "," //IE + "top=" + yposition; //IE if(popUpWin)   {   if(!popUpWin.closed){ alert('您已经打开了聊天界面') }else { popUpWin =window.open(theURL,winName,theproperty); }   }else { popUpWin =window.open(theURL,winName,theproperty); } } document.writeln("
"); document.writeln(""); document.writeln("<\/a>"); document.writeln("<\/div>"); var xPos = 20; var yPos = document.body.clientHeight; var step = 1; var delay = 30; var height = 0; var Hoffset = 0; var Woffset = 0; var yon = 0; var xon = 0; var pause = true; var interval; img.style.top = yPos; function changePos() { width = document.body.clientWidth; height = document.body.clientHeight; Hoffset = img.offsetHeight; Woffset = img.offsetWidth; img.style.right = 10;//xPos + document.body.scrollLeft; img.style.top = height-210 + document.body.scrollTop; if (yon) { yPos = yPos + step;} else { yPos = yPos - step;} if (yPos < 0) { yon = 1; yPos = 0;} if (yPos >= (height - Hoffset)) { yon = 0; yPos = (height - Hoffset);} if (xon) { xPos = xPos + step;} else { xPos = xPos - step;} if (xPos < 0) { xon = 1; xPos = 0;} if (xPos >= (width - Woffset)) { xon = 0; xPos = (width - Woffset);}} function start() { img.visibility = "visible"; interval = setInterval('changePos()', delay);} start();