jquery(document).ready(function (a) { action() }); function action() { $(document.body).append(''); $("#roll_top").click(function () { $("html,body").animate({ scrolltop: "0px" }, 800) }); $("#ct").click(function () { $("html,body").animate({ scrolltop: $(".ct").offset().top }, 800) }); $(window).scroll(function (a) { if ($.browser.ie6) { $("#roll").css("top", $(this).scrolltop() + $(this).height() - 170) } if ($(this).scrolltop() > 260) { $("#roll").fadein() } else { $("#roll").fadeout() } }) }; /*在线客服开始*/ function imstate(){$.get("/ajax.ashx?action=imstate&t="+math.random(),function(rsp){window.iminfo=eval("("+rsp+")");if(iminfo.imshow){$.getscript("/usercontrols/im/im.js?t="+math.random(),function(){writeim(iminfo.imdata);});}else{$("#divoranim").hide();}});} $(function(){$("body").append("
");imstate();}); /*在线客服结束*/ function douu(a) { var h = ""; var i = "底部获取报价"; var d = $("#shi").val(); var t = $("#ting").val(); var c = $("#txtphone").val(); var e = $("#txtarea").val(); var b = ""; if (c == "" || c == "手机") { b += "
  • 联系电话不可为空
  • " } else { var mpvar = /^1[3-8]\d{9}$/; var telvar = /^((\d{3,5})-)(\d{3,8})(-(\d{3,}))?$/; if (!mpvar.test(c)) { b += "
  • 联系电话格式错误
  • " } } if (e == "" || e == "面积") { b += "
  • 面积不能为空
  • " } if (b.length > 0) { $a(b); return } showproc(a); $.post("/ajax.ashx?action=footsendleaveword&t=" + math.random(), { title: i, shi: d, ting: t, tel: c, area: e }, function (msg) { var sta = gav(msg, "state"); var smsg = gav(msg, "msg"); if (sta == "1") { $a(smsg, 1); cleartable(); } else { $a(smsg); } showproc(src, false); }); } function cleartable() { $(".f_ly .txtword").val(""); $("#shi").val("1房"); $("#ting").val("1厅"); $("#txtphone").val("手机"); $("#txtarea").val("面积"); } function include_file(file, _type, callback) { var _doc = document.getelementsbytagname('head')[0]; var isie = navigator.useragent.touppercase().indexof("msie") == -1 ? false : true; var _fileobj; if (_type == "script") { _fileobj = document.createelement('script'); _fileobj.setattribute('type', 'text/javascript'); _fileobj.setattribute('src', file); _doc.appendchild(_fileobj); if (!isie) { _fileobj.onload = function () { callback() } } else { _fileobj.onreadystatechange = function () { if (_fileobj.readystate == 'loaded' || _fileobj.readystate == 'complete') { callback() } } } } else if (_type == "css") { _fileobj = document.createelement('link'); _fileobj.setattribute('type', 'text/css'); _fileobj.setattribute('rel', 'stylesheet'); _fileobj.setattribute('href', file); _doc.appendchild(_fileobj); if (!isie) { callback() } else { _fileobj.onreadystatechange = function () { if (_fileobj.readystate == 'loaded' || _fileobj.readystate == 'complete') { callback() } } } } } jquery(document).ready(function ($) { include_file("/css/fanhuidibu.css", "css", function () { // if (!isloads("/js/jquery-1.3.2.min.js")) { // include_file("/js/jquery-1.3.2.min.js", "script", action) // } else { // action() // } action(); }) }); function action() { $(document.body).append("
    "); $('#roll_top').click(function () { $('html,body').animate({ scrolltop: '0px' }, 800) }); $('#ct').click(function () { $('html,body').animate({ scrolltop: $('.ct').offset().top }, 800) }); $(window).scroll(function (event) { if ($.browser.ie6) { $('#roll').css('top', $(this).scrolltop() + $(this).height() - 170) } if ($(this).scrolltop() > 260) { $('#roll').fadein() } else { $('#roll').fadeout() } }) } function isloads(src) { var isloaded = false; var scripts = document.getelementsbytagname("script"); for (i = 0; i < scripts.length; i++) { if (scripts[i].src && scripts[i].src.indexof(src) != -1) { if (scripts[i].readystate == "loaded" || scripts[i].readystate == "complete") { isloaded = true; break } } } return isloaded }