document.writeln(" ");
document.writeln("");
/*
* pop-window.js v0.1
*/
var style_url='http://style.ch.gongchang.com/list/online/';
function show_ali_online(is_online){
document.write(" " );
}
var ip='amos.im.alisoft.com';
var ali_url='http://'+ip+'/userstatus3.aw?uid=';
var ali_user="gongchang";
document.writeln(""+"script>");
var qqsite = document.URL;
//上面为阿里旺旺设置
function popWindow() {
var popwindow = '' +
'
河北新锐有限公司 ' +
'X ' +
'
' +
'';
var popWin = document.createElement("div");
popWin.id = "serviceSkin-1";
popWin.className = "service-msg skin-2";//修改skin-* 来改变模板颜色
popWin.style.position = "absolute";
popWin.style.right = "10px";
popWin.innerHTML = popwindow;
document.body.appendChild(popWin);
setTop();
//setRight(popWin);
}
function closePopWindow() {
var elem = document.getElementById("serviceSkin-1");
elem.style.display = "none";
}
function setTop() {
var elem = document.getElementById("serviceSkin-1");
elem.style.top = (new pos().y + windowHeight()/5) + "px";
setTimeout("setTop()", 100);
}
//滚卷区域宽高
var pos = function() {
var posX,posY;
if (window.innerHeight) {
posX = window.pageXOffset;
posY = window.pageYOffset;
}
else if (document.documentElement && document.documentElement.scrollTop) {
posX = document.documentElement.scrollLeft;
posY = document.documentElement.scrollTop;
}
else if (document.body) {
posX = document.body.scrollLeft;
posY = document.body.scrollTop;
}
this.x = posX;
this.y = posY;
return this;
};
//获取浏览器可见区域的宽高
function windowHeight() {
//最后传出的值
var windowHeight;
// 除了IE以外的浏览器
if (self.innerHeight) {
windowHeight = self.innerHeight;
}
/* IE6 浏览器 */
else if (document.documentElement && document.documentElement.clientHeight) {
windowHeight = document.documentElement.clientHeight;
}
//其他版本的IE浏览器
else if (document.body) {
windowHeight = document.body.clientHeight;
}
return windowHeight;
}
function windowWidth() {
//最后传出的值
var windowWidth;
// 除了IE以外的浏览器
if (self.innerWidth) {
windowWidth = self.innerWidth;
}
/* IE6 浏览器 */
else if (document.documentElement && document.documentElement.clientWidth) {
windowWidth = document.documentElement.clientWidth;
}
// 其他版本的IE浏览器
else if (document.body) {
windowWidth = document.body.clientWidth;
}
return windowWidth;
};
if (window.addEventListener) {
window.addEventListener("load", popWindow, false)
} else {
if (window.attachEvent) {
window.attachEvent("onload", popWindow)
}
};