用LiveZilla做的在线客服,配置成功了,但是如何能在固定的位置漂浮起来啊?
LiveZilla在Html中的代码<!-- http://www.LiveZilla.net Chat Button Link Code -->
<div style="text-align:center;width:191px;"><a href="javascript:void(window.open('http://127.0.0.1/kf/livezilla.php','','width=590,height=550,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))"><img src="http://127.0.0.1/kf/image.php?id=02" width="191" height="69" border="0" alt="LiveZilla Live Help"></a><noscript><div><a href="http://127.0.0.1/kf/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript></div><div id="livezilla_tracking" style="display:none"></div><script type="text/javascript">var script = document.createElement("script");script.type="text/javascript";var src = "http://127.0.0.1/kf/server.php?request=track&output=jcrpt&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1);</script>
<!-- http://www.LiveZilla.net Tracking Code -->
LiveZilla在Html中的代码<!-- http://www.LiveZilla.net Chat Button Link Code -->
<div style="text-align:center;width:191px;"><a href="javascript:void(window.open('http://127.0.0.1/kf/livezilla.php','','width=590,height=550,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))"><img src="http://127.0.0.1/kf/image.php?id=02" width="191" height="69" border="0" alt="LiveZilla Live Help"></a><noscript><div><a href="http://127.0.0.1/kf/livezilla.php" target="_blank">Start Live Help Chat</a></div></noscript></div><div id="livezilla_tracking" style="display:none"></div><script type="text/javascript">var script = document.createElement("script");script.type="text/javascript";var src = "http://127.0.0.1/kf/server.php?request=track&output=jcrpt&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1);</script>
<!-- http://www.LiveZilla.net Tracking Code -->
var lastScrollY=0;
function heartBeat(){
diffY=document.documentElement.scrollTop;
percent=0.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("sorollDiv1").style.top=parseInt(document.getElementById("sorollDiv1").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat()",1);
</script>
<div id="sorollDiv1" style="width:180px; height:50px; right:30px;position:absolute;top:170px; text-aling:right;">
<a onclick="sorollDiv1.style.display ='none'" href="javascript:;" style="color:ff0000; "> <img src="/images/upgrade/close.gif" border="0"></a><br>
<a href="javascript:void(window.open('http://www.livezilla.cc/livezillademo/livezilla.php','','width=590,height=550,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,scrollbars=yes'))"><img src="http://www.livezilla.cc/livezillademo/image.php?id=05" width="141" height="81" border="0" alt="开始交流"></a><noscript><div><a href="http://www.livezilla.cc/livezillademo/livezilla.php" target="_blank">开始交流</a></div></noscript>
<br>
LiveZilla在线客服演示
</div>
http://www.LiveZilla.cc LiveZilla中文网上扣出来的代码。