admin管理员组

文章数量:1530914

2023年12月29日发(作者:)

分享一下在ecshop中实现浮动qq客服的js代码

/post/

("

");

("

style='display : none;'>");

("

");

("

路路通商城

欢迎您

");

("

");

("

");

("

");

("

src='OKQQ/images/qq_' class='press' alt='在线咨询'>

");

("

");

//

var tips; var theTop = 145/*这是默认高度,越大越往下*/; var old = theTop;

function initFloatTips() {

tips = mentById('divQQbox');

moveTips();

};

function moveTips() {

var tt=50;

if (eight) {

pos = ffset

}

else if (ntElement && Top) {

pos = Top

}

else if () {

pos = Top;

}

pos=Top+theTop;

pos=Top+pos/10;

if (pos < theTop) pos = theTop;

if (pos != old) {

= pos+"px";

tt=10;

//alert();

}

old = pos;

setTimeout(moveTips,tt);

}

//!]]>

initFloatTips();

function OnlineOver(){

mentById("divMenu").y = "none";

mentById("divOnline").y = "block";

mentById("divQQbox"). = "145px";

}

function OnlineOut(){

mentById("divMenu").y = "block";

mentById("divOnline").y = "none";

}

function guan(){

mentById("divMenu").y = "block";

mentById("divOnline").y = "none";

OnlineOut();

}

function hideMsgBox(theEvent){ //theEvent用来传入事件,Firefox的方式

if (theEvent){

var browser=ent; //取得浏览器属性

if (f("Firefox")>0){ //如果是Firefox

if (mentById('divOnline').contains(dTarget)) { //如果是子元素

return; //结束函式

}

}

if (f("MSIE")>0){ //如果是IE

if (mentById('divOnline').contains(ent)) { //如果是子元素

return; //结束函式

}

}

}

}

本文标签: 客服事件浮动实现给我发