网站商务通
方式一:文章内容中的< a>标签链接商务通时,需在网站中加swt文件夹,内含index.html即可,html内容:
<html>
<head>
<meta http-equiv="content-Language" content="zh-CN">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<title></title>
</head>
<body>
<script type="text/javascript">
var a=document.referrer;
document.write('<meta http-equiv="refresh" content="0.1;url=http://pgt.zoosnet.net/LR/Chatpre.aspx?id=PGT45580591&laiyuan='+a+'">'); //此段url中域名pgt.zoosnet.net及id需根据商务通账号修改。
</script>
</html>
方式二:添加商务通链接最简单的方法
直接使用商务通调用超链接的js标签,这种方法比较方便,不需要别的php,js文件辅助,只要引入了商务通代码,直接就可以调用商务通超链接;
例如:
<a "LR_HideInvite();openZoosUrl();return false;" href="#" target="_blank">点击咨询</a>
方式三:页面中间弹窗商务通
<script type="text/JavaScript">
window.onload = function(){
window.setInterval(function(){
document.getelementbyid('swtcenter').style.display='block';
document.getElementById('right_swt').style.display='none';
},10000);
};
$(function(){
$("#dianjicishu").click(function(){
$("#swtcenter").hide();
$("#right_swt").show();
});
});
</script>
<style>
#swtcenter { width: 400px; position: fixed; left: 50%; top: 50%; margin-left: -200px; margin-top: -164px; z-index: 9999; }
.absolute { position: absolute; }
.swt_lists { width: 100%; height: 70px; bottom: 20px; }
.swt_list1 { width: 50%; height: 70px; float: left; }
.swt_list2 { width: 50%; height: 70px; float: right; }
.newswt_lists { width: 100%; height: 45px; top:125px; }
.newswt_lists a { width: 100%; height: 45px; top:125px; display: block; }
.closeBtn_swt { right: -1px; top: -5px; width: 54px; height: 54px; background-size: 100%; cursor: pointer;}
</style>
<p id="right_swt" style="position:fixed;right:10px;top:50%;margin-top:-50px;z-index: 9999;display: none;">
<a href="/swt/"><img style="width:100px;" src="{IMG_PATH}nn_images/swt.gif"/></a>
</p>
<p class="swtcenter relative" id="swtcenter" style="display:none;">
<img src='{IMG_PATH}nn_images/center_swt.png' style='width:100%;' />
<span class="closeBtn_swt absolute" id="dianjicishu" "checkRight()" ></span>
<p class="newswt_lists absolute">
<a href="tel:0771-6701234" class="newswt_list1" target="_blank"></a>
</p>
<p class="swt_lists absolute">
<a href="/swt/" class="swt_list1" "LR_HideInvite();openZoosUrl();return false;"></a>
<a href="tel:0771-6701234" class="swt_list2" "LR_HideInvite();openZoosUrl();return false;"><i class="swtLinkCounter" id="swtLinkCounter"></i></a>
</p>
</p>