首页 » 技术分享 » 商务通-手机对话窗口内嵌 通过来源路径区分电话号码

商务通-手机对话窗口内嵌 通过来源路径区分电话号码

 

<script type="text/javascript">
var url=document.location.href;
var dianhua="";
var tupian="";
if(url.indexOf('sgydg')>-1 || || url.indexOf('360ggt')>-1 || url.indexOf('360ggt')>-1 || url.indexOf('360ggt')>-1 url.indexOf('smyd')>-1 || url.indexOf('360ggt')>-1){
	dianhua="tel:010-87234256";
	tupian="http://wx.qhgbzk.com/public/images/4255.gif";
	tupian2="http://wx.qhgbzk.com/public/images/popswtright.png";
}else{
	dianhua="tel:010-87234299";
	tupian="";
	tupian2="";
}
document.writeln("<div id=\'swttopdh\' style=\'position:fixed; top:0; width:100%; z-index:99999999;\'>");
document.writeln("<a href=\'"+dianhua+"\'>");
document.writeln("<img src=\'"+tupian+"\' style=\'width:100%;\'>");
document.writeln("</a>");
document.writeln("</div>");
document.writeln("<style type=\'text/css\'>");
document.writeln(".swt_c1 .msg-box .msg-agent .bubble-prologue .text div{margin-left:0 !important;}");
document.writeln("</style>");
document.writeln('		<style type="text/css">');
document.writeln('			.swt_r{z-index:999; position: fixed; top: 25%; right: 1px; }');
document.writeln('			#tel_m a{color: #891DA7 !important;}');
document.writeln('			#tools li{opacity:1 !important;}');
document.writeln('			.swt_r img{width: 50%; border: 0; float: right;}');
document.writeln('			.text div{position:relative}');
document.writeln('			.text .img{width: 100%; border: 0;}');
document.writeln('			.text div{position:relative}');
document.writeln('			.text iframe{position: absolute;top: 0;left: 0;width: 100%;height:100%;}');
document.writeln('		</style>');
document.writeln('		<div class="swt_r">');
document.writeln('			<a href=\"'+dianhua+'\">');
document.writeln('			<img src=\"'+tupian2+'\">');
document.writeln('			</a>');
//<img src=\'"+tupian2+"\' ></a>');
document.writeln('		</div>');
</script>

转载自原文链接, 如需删除请联系管理员。

原文链接:商务通-手机对话窗口内嵌 通过来源路径区分电话号码,转载请注明来源!

0