【www.bbyears.com--js教程】
效果代码
js代码
代码如下
words" content=" 悬浮在线QQ客服代码分享" />
<script type="text/javascript">
document.writeln("");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" 期货配资");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" 开户咨询");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" 股指验资");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" 代客理财");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" 技术指导");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln("
套利套保
");document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln(" 全国免费热线");
document.writeln(" ");
document.writeln(" ");
document.writeln(" 400-079-8880");
document.writeln(" ");
document.writeln(" ");
document.writeln(" 021-60547777");
document.writeln(" ");
document.writeln(" ");
document.writeln(" ");
document.writeln("");
var w3c = (document.getElementById) ? true : false;
var agt = navigator.userAgent.toLowerCase();
var ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1) && (agt.indexOf("omniweb") == -1));
var mymovey = new Number();
function IeTrueBody(){
return (document.compatMode && document.compatMode!="BackCompat") ? document.documentElement : document.body;}
function GetScrollTop(){
return ie ? IeTrueBody().scrollTop : window.pageYOffset;}
function heartBeat(){
diffY=GetScrollTop();
mymovey += Math.floor((diffY-document.getElementById("divStayTopLeft").style.top.replace("px","")+50)*0.1);
document.getElementById("divStayTopLeft").style.top = mymovey+"px";}
function hiddenDiv(){
document.getElementById("divStayTopLeft").style.display="none";}
window.setInterval("heartBeat()",1);
</script>