2024年4月7日发(作者:win7 32位和64位区别)
分享一下在ecshop中实现浮动qq客服的js代码
/post/
("
("
style='display : none;'>");
("
");("
欢迎您
("
("
/pa?p=1:740859636:10' border='0' alt='路路通商城' />
"); /pa?p=1:249082059:10' border='0' alt='路路通商城' />
"); /pa?p=1:362325264:10' border='0' alt='路路通商城' />
"); - 号&s=2" >
alt="点击这里给我发消息" />在线旺旺
'); 咨询电话:400-6762-668
服
"); (" (" | "); (" (" |
"); (" (" | "); (' (" |
('
('
("
("
("
");("
("
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条)