lastscrolly = 0; function heartbeat() { var a; if (document.documentelement && document.documentelement.scrolltop) { a = document.documentelement.scrolltop } else { if (document.body) { a = document.body.scrolltop } else { } } percent = 0.1 * (a - lastscrolly); if (percent > 0) { percent = math.ceil(percent) } else { percent = math.floor(percent) } document.getelementbyid("faiscoservice").style.top = parseint(document.getelementbyid("faiscoservice").style.top) + percent + "px"; lastscrolly = lastscrolly + percent }$(function() { var a = 0; var phonetypes = new array('android','ipod','itouch','iphone','ipad','blackberry','symbianos','symbos','windows phone os','wap','kindle','pad','pod'); var navigatoragent = navigator.useragent; for (x in phonetypes){ if(navigatoragent.match(new regexp(phonetypes[x]))==phonetypes[x]){ a = 0; } } suspendcode = [ "
", "
在线客服咨询
", "
", "
", "微信二维码", "", "
", "
", "国内事业部", "

", "

", "
", "
", "国际事业部", "

", "
", "
", "热线电话", "

13600564343

", "
", "
", "
"]; $(suspendcode.join("")).appendto("body"); window.setinterval("heartbeat()", 1); $("#faiscoservice").mouseover(function() { $("#faiscoservice").animate({ right : 0 }, { queue : false, duration : 500 }) }).mouseleave(function() { $("#faiscoservice").animate({ right : -132 }, { queue : false, duration : 500 }) }) }); newsscroll = function(m) { var e = { pauseduration : 800, showduration : 600, scrollmode : "up" }; var c = $.extend({}, e, m); var b = $("#" + m.moduleid); var f = b.parent(); var k = b.find(".promoteline"); var l; var i; if (k.length == 0) { return } var g = k.outerheight(); var a = "scroll" + c.moduleid; b.mouseover(function() { b.stop(); fai.stopinterval(a) }).mouseout(function() { fai.startinterval(a) }); function j() { b.css({ position : "relative" }); f.css({ overflow : "hidden", position : "relative" }); b.height(b.height()); f.height(b.height()); function h() { if (c.scrollmode == "up") { b.animate({ top : "-=" + g }, c.showduration, function() { var n = b.find(".promoteline:first"); n.appendto(b).end().hide().fadein(400); b.css({ top : 0 }); d() }) } else { b.animate({ top : "+=" + (g + $sepline) }, c.showduration, function() { var n = b.find(".promoteline:last"); n.insertbefore(b.find(".promoteline:first")).end().hide().fadein(400); b.css({ top : 0 }); d() }) } } fai.addtimeout(a, h, c.pauseduration); fai.startinterval(a) } function d() { j() } j() }; cussayscroll = function(j) { var e = { pauseduration : 2000, showduration : 800, scrollmode : "up" }; var b = e; if (j) { b = $.extend({}, e, j) } var h = $("#cussay").children("div.say-item-parent"), i = b.pauseduration, g = b.showduration, f = b.scrollmode, a = "alwayssay"; h.mouseover(function() { fai.stopinterval(a) }).mouseout(function() { fai.startinterval(a) }); function c() { function k() { if (f == "up") { var l = h.children("div.say-item").first().height(); h.animate({ top : "-=" + l }, g, function() { var m = h.children("div.say-item").first(); m.appendto(h).end().hide().fadein(400); h.css({ top : 0 }); d() }) } else { var l = h.children("div.say-item").last().height(); h.animate({ top : "+=" + l }, g, function() { var m = h.children("div.say-item").last(); m.insertbefore(h.children("div.say-item").first()).end().hide().fadein(400); h.css({ top : 0 }); d() }) } } fai.addtimeout(a, k, i); fai.startinterval(a) } function d() { c() } c() }; logdog = function(b, a) { $.ajax({ type : "post", url : "http://" + portalhost + "/_dogonly.jsp?di=" + fai.encodeurl(b) + "&ds=" + fai.encodeurl(a), datatype : "jsonp" }) };