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

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


2024年4月7日发(作者:win7 32位和64位区别)

分享一下在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; //结束函式

}

}

}

}


发布者:admin,转转请注明出处:http://www.yc00.com/xitong/1712475626a2066246.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信