教大家一招简单的移动QQ客服代码制作,只要将下面的代码放到TPL_TOP.htm里面就直接在原有代码后面粘贴即可,新手卖家也能很快学会,非常简单。
<A class="external text" title=http://www.shopex.cn/bbs/attachment.php?aid=2330 href="http://www.shopex.cn/bbs/attachment.php?aid=2330" rel=nofollow>下载kefu文件夹</A>
<PRE><DIV id=FloatAdLayer67 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; Z-INDEX: 20; LEFT: 10px; VISIBILITY: visible; BORDER-LEFT: 0px; WIDTH: 51px; BORDER-BOTTOM: 0px; POSITION: absolute; TOP: 642px; HEIGHT: 51px">
<TABLE border=0>
<TBODY>
<TR>
<TD vAlign=top width=50 height=50>
<DIV id=D1 style="Z-INDEX: 1000; LEFT: 0px; VISIBILITY: visible; POSITION: absolute; TOP: 792px">
<TABLE cellSpacing=0 cellPadding=0 align=center border=0>
<TBODY>
<TR>
<TD style="CURSOR: hand" onclick=menuChange(this,div_user,ico5);><IMG alt=收缩/展开 src="http://www.shopex.cn/http://www.shopex.cn/NewsSite/tech/html/kefu/top.gif" width=110 border=0 name=ico5></TD></TR></TBODY></TABLE>
<TABLE id=div_user cellSpacing=0 cellPadding=0 width=110 align=center border=0>
<TBODY>
<TR>
<TD vAlign=center align=middle width="100%" background="/kefu/middle.gif">
<TABLE height=70 cellSpacing=0 cellPadding=0 width=86 align=center border=0>
<TBODY>
<TR>
<TD vAlign=center align=middle width="100%">
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TBODY>
<TR vAlign=center>
<TD style="PADDING-LEFT: 5px"><A href="tencent://message/?uin=你的1QQ号&Site=你的网站&Menu=yes" target=blank><IMG alt=点击这里给我发消息 src="http://wpa.qq.com/pa?p=1:你的1QQ号:7" border=0></A></TD>
<TR vAlign=center>
<TD style="PADDING-LEFT: 5px"><A href="tencent://message/?uin=你的2QQ号&Site=你的网站&Menu=yes" target=blank><IMG alt=点击这里给我发消息 src="http://wpa.qq.com/pa?p=1:你的2QQ号:7" border=0></A></TD></TR>
<TR vAlign=center>
<TD style="PADDING-LEFT: 5px"><A href="tencent://message/?uin=你的3QQ号&Site=你的网站&Menu=yes" target=blank><IMG alt=点击这里给我发消息 src="http://wpa.qq.com/pa?p=1:你的3QQ号:7" border=0></A> </TD></TR>
<TR vAlign=center>
<TD style="PADDING-LEFT: 5px"><A href="http://amos1.taobao.com/msg.ww?v=2&uid=你的旺旺1号&s=1" target=_blank><IMG alt=旺旺咨询 src="http://amos1.taobao.com/online.ww?v=2&uid=你的旺旺1号&s=1" border=0></A> </TD></TR>
<TR vAlign=center>
<TD style="PADDING-LEFT: 5px"><A href="http://amos1.taobao.com/msg.ww?v=2&uid=你的旺旺2号&s=1" target=_blank><IMG alt=旺旺咨询 src="http://amos1.taobao.com/online.ww?v=2&uid=你的旺旺2号&s=1" border=0></A></TD></TR>
</TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 align=center border=0>
<TBODY>
<TR>
<TD ><IMG style="CURSOR: help" alt=关闭 src="http://www.shopex.cn/kefu/bottom.gif" width=110 align=center border=0></TD></TR></TBODY></TABLE>
<DIV></DIV>
<SCRIPT language=javascript>
function menuChange(obj,menu,ico)
{
if(menu.style.display=="")
{
ico.src="http://www.shopex.cn/NewsSite/tech/html/kefu/top.gif";
menu.style.display="none";
}
else{
ico.src="http://www.shopex.cn/NewsSite/tech/html/kefu/top.gif";
menu.style.display="";
}
}
function CheckUIElements()
{
var yMenu1From, yMenu1To, yOffset, timeoutNextCheck;
var wndWidth = parseInt(document.body.clientWidth);
yMenu1From = parseInt (D1.style.top, 10);
yMenu1To = document.body.scrollTop + 200; //
timeoutNextCheck = 100;
if ( yMenu1From != yMenu1To ) {
yOffset = Math.ceil( Math.abs( yMenu1To - yMenu1From ) / 20 );
if ( yMenu1To < yMenu1From )
yOffset = -yOffset;
D1.style.top = parseInt (D1.style.top, 10) + yOffset;
timeoutNextCheck = 100;
}
setTimeout ("CheckUIElements()", timeoutNextCheck);
}
function MovePosition()
{
var wndWidth = parseInt(document.body.clientWidth);
D1.style.top = document.body.scrollTop + 180;
D1.style.visibility = "visible";
CheckUIElements();
return true;
}
MovePosition();
if (window.screen.width<1024){
D1.style.left=window.screen.width-110;
}
</SCRIPT>
<!--qq-->
</DIV></TD></TR></TBODY></TABLE></DIV>
<SCRIPT type=text/javascript>
<!--
function initFloatAd67() {
window.setInterval("MoveFloatLayer67();", 20);
}
function MoveFloatLayer67() {
var x = 10;
var y = 50;
var docuTop = document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop;
var y = docuTop + y;
document.all.FloatAdLayer67.style.pixelLeft = x;
document.all.FloatAdLayer67.style.pixelTop = y;
}
initFloatAd67();
//-->
</SCRIPT>
</PRE>