首页 > 代码库 > ECshop两个自动收缩浮动在线客服代码,QQ客服、在线MSN、旺旺,兼容IE、 FF

ECshop两个自动收缩浮动在线客服代码,QQ客服、在线MSN、旺旺,兼容IE、 FF

--------------------------------------------------------------------------------
更新:增加客服2红色皮肤
修正:FF3显示不隐藏问题
--------------------------------------------------------------------------------
文件夹OKQQ 或 QQkefu 直接放在商城网站根目录
调用例子:

UTF 调用

  1. <link href="http://www.mamicode.com/OKQQ/images/qq.css" rel="stylesheet" type="text/css" />
  2. <script language=‘javascript‘ src=http://www.mamicode.com/‘OKQQ/ServiceQQ.js‘ type=‘text/javascript‘ charset=‘utf-8‘></script>
复制代码
  1. <link href="http://www.mamicode.com/QQkefu/images/qq.css" rel="stylesheet" type="text/css" />
  2. <script language=‘javascript‘ src=http://www.mamicode.com/‘QQkefu/ServiceQQ.js‘ type=‘text/javascript‘ charset=‘utf-8‘></script>
复制代码

========================================
ECshop专用下载:

客服1左侧显示下载:

客服1右侧显示下载:


客服2下载:


客服2红色皮肤下载:

调用说明:

百度网盘下载:http://pan.baidu.com/share/link?shareid=10841&uk=537093969
=========================================


效果如图:



================================================
以客服1 utf 在 default 模板应用为例
操作说明:

1、复制OKQQ目录到商城安装的根目录

2、找到 themes\default\library\page_footer.lbi

在底部加入红色代码


<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--底部导航 start-->
<div id="bottomNav" class="box">
<div class="box_1">
  <div class="bNavList clearfix">
   <div class="f_l">
   <!-- {if $navigator_list.bottom} -->
   <!-- {foreach name=nav_bottom_list from=$navigator_list.bottom item=nav} -->
        <a href="http://www.mamicode.com/{$nav.url}" <!-- {if $nav.opennew eq 1} --> target="_blank" <!-- {/if} -->>{$nav.name}</a>
        <!-- {if !$smarty.foreach.nav_bottom_list.last} -->
           -
        <!-- {/if} -->
      <!-- {/foreach} -->
  <!-- {/if} -->
   </div>
   <div class="f_r">
   <a href="http://www.mamicode.com/#top"><img src="http://www.mamicode.com/images/bnt_top.gif" /></a> <a href="http://www.mamicode.com/index.php"><img src="http://www.mamicode.com/images/bnt_home.gif" /></a>
   </div>
  </div>
</div>
</div>
<!--底部导航 end-->
<div class="blank"></div>
<!--版权 start-->
<div id="footer">
<div class="text">
{$copyright}<br />
{$shop_address} {$shop_postcode}
<!-- 客服电话{if $service_phone} -->
      Tel: {$service_phone}
<!-- 结束客服电话{/if} -->
<!-- 邮件{if $service_email} -->
      E-mail: {$service_email}<br />
<!-- 结束邮件{/if} -->
<!-- QQ 号码 {foreach from=$qq item=im} -->
      <!-- {if $im} -->
      <a href="http://wpa.qq.com/msgrd?V=1&Uin={$im}&Site={$shop_name}&Menu=yes" target="_blank"><img src="http://wpa.qq.com/pa?p=1:{$im}:4" height="16" border="0" alt="QQ" /> {$im}</a>
      <!-- {/if} -->
      <!-- {/foreach} 结束QQ号码 -->
      <!-- 淘宝旺旺 {foreach from=$ww item=im} -->
      <!-- {if $im} -->
      <a href="http://amos1.taobao.com/msg.ww?v=2&uid={$im|escape:u8_url}&s=2" target="_blank"><img src="http://amos1.taobao.com/online.ww?v=2&uid={$im|escape:u8_url}&s=2" width="16" height="16" border="0" alt="淘宝旺旺" />{$im}</a>
      <!-- {/if} -->
      <!--{/foreach} 结束淘宝旺旺 -->
      <!-- Yahoo Messenger {foreach from=$ym item=im} -->
      <!-- {if $im} -->
      <a href="http://edit.yahoo.com/config/send_webmesg?.target={$im}n&.src=pg" target="_blank"><img src="http://www.mamicode.com/images/yahoo.gif" width="18" height="17" border="0" alt="Yahoo Messenger" /> {$im}</a>
      <!-- {/if} -->
      <!-- {/foreach} 结束Yahoo Messenger -->
      <!-- MSN Messenger {foreach from=$msn item=im} -->
      <!-- {if $im} -->
      <img src="http://www.mamicode.com/images/msn.gif" width="18" height="17" border="0" alt="MSN" /> <a href="http://www.mamicode.com/msnim:chat?contact={$im}">{$im}</a>
      <!-- {/if} -->
      <!-- {/foreach} 结束MSN Messenger -->
      <!-- Skype {foreach from=$skype item=im} -->
      <!-- {if $im} -->
      <img src="http://mystatus.skype.com/smallclassic/{$im|escape:url}" alt="Skype" /><a href="http://www.mamicode.com/skype:{$im|escape:url}?call">{$im}</a>
      <!-- {/if} -->
  <!-- {/foreach} --><br />
  <!-- ICP 证书{if $icp_number} -->
  {$lang.icp_number}:<a href="http://www.miibeian.gov.cn/" target="_blank">{$icp_number}</a><br />
  <!-- 结束ICP 证书{/if} -->
  {insert name=‘query_info‘}<br />
  {foreach from=$lang.p_y item=pv}{$pv}{/foreach}{$licensed}<br />
    {if $stats_code}
    <div align="left">{$stats_code}</div>
    {/if}
    <div align="left"  id="rss"><a href="http://www.mamicode.com/{$feed_url}"><img src="http://www.mamicode.com/images/xml_rss2.gif" alt="rss" /></a></div>
</div>
</div>
<link href="http://www.mamicode.com/OKQQ/images/qq.css" rel="stylesheet" type="text/css" />
<script language=‘javascript‘ src=http://www.mamicode.com/‘OKQQ/ServiceQQ.js‘ type=‘text/javascript‘ charset=‘utf-8‘></script>

ECshop两个自动收缩浮动在线客服代码,QQ客服、在线MSN、旺旺,兼容IE、 FF