document.writeln(""); document.writeln(""); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln("
"); document.writeln(" 13682312778"); 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).ready(function(){ var bodyTop = 0; var selfHeight = $("#online_box").height(); if (typeof window.pageYOffset != 'undefined') { bodyTop = window.pageYOffset; } else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { bodyTop = document.documentElement.scrollTop; }else if (typeof document.body != 'undefined') { bodyTop = document.body.scrollTop; } //$("#online_box").css("top", bodyTop+document.body.clientHeight-selfHeight-5); $(".close").click(function(){ $("#online_box").hide(); }) //返回顶部 $(".gotop").click(function(){ $("html,body").animate({ scrollTop: 0}, 200); return false; }); }); $(window).scroll(function() { var bodyTop = 0; var selfHeight = $("#online_box").height(); if (typeof window.pageYOffset != 'undefined') { bodyTop = window.pageYOffset; } else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { bodyTop = document.documentElement.scrollTop; }else if (typeof document.body != 'undefined') { bodyTop = document.body.scrollTop; } //靠上端方式 // $("#online_box").css("top", 140 + bodyTop); $("#online_box").stop().animate({ "top": 140 + bodyTop}, 500); //靠下端方式 //$("#online_box").css("top", bodyTop+document.body.clientHeight-selfHeight-5); });