Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230

Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
文件 ./web/ganzhou.zjtaizhou.hikvision.maoming.sys.jixi.ww38.viennacitytours.com/ua.html 已存在,不会重新生成。
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/www.85520057.com/func.php:566) in /www/wwwroot/www.85520057.com/js.php on line 27
// $('#single-posts').fixbox({});//初始化 // $("#single-posts").fixbox("show");//外部调用插件里的方法 (function ($, window, document, undefined) { var $win = $(window); var $document = $(document); /** * @constructor FixBox * 创建一个新的的 FixBox 类. * @param {Object} element DOM元素. * @param {Object} options 插件配置 . * @type {Object} * @example new FixBox( this , options) * */ var FixBox = function (element, options) { this.initialize('fixbox', element, options); }; /** * This is a property of class FixBox */ FixBox.prototype = { constructor:FixBox, /** * 初始化 * @classDescription 初始化 * @param {String} type 跟随类型 * @param {Object} element 弹窗所依附的DOM元素. * @param {Object} options 插件配置 . */ initialize:function (type, element, options) { var _this = this; this.type = type; this.$element = $(element); this.options = this.options || this.getOptions(options); this.winH = $win.height(); this.winW = $win.width(); if (this.options.isFixdeHeight) { this.fixedBoxH = this.$element.outerHeight(true); } this.offsetT = this.$element.offset().top; this.resizeWindow(); this.documentH = $document.height(); $win.bind("resize", function () { _this.resizeWindow(); }); }, /** * 初始化 配置参数 返回参数MAP * @param {Object} options 插件配置 . * @return {Object} 配置参数 */ getOptions:function (options) { options = $.extend({}, $.fn[this.type].defaults, this.$element.data(), options || {}); return options; }, //resize Window和初始化的时候使用 resizeWindow:function () { var options = this.options; var _this = this; this.winH = $win.height(); this.winW = $win.width(); if (this.winW >= options.pagewidth) { this.doFix(); $win.unbind("." + options.scrollEventName); $win.bind("scroll." + options.scrollEventName, function () { _this.doFix(); }); } else { $win.unbind("." + options.scrollEventName); this.$element.css("position", "static"); } }, //滚动 doFix:function () { var $element = this.$element; var options = this.options; var distanceToBottom = options.distanceToBottom; var distanceToTop = options.distanceToTop; if (!this.options.isFixdeHeight) { this.fixedBoxH = $element.outerHeight(true); } var fixedBoxH = this.fixedBoxH; var offsetT = this.offsetT; var fixedBoxPositionB = fixedBoxH + this.offsetT;//$fixedBox的底部位置 =fixedBox高度+fixedBox的offset().top var winH = this.winH; if (!options.isFixdeDocHeight) { this.documentH = $document.height(); } var documentH = this.documentH; //console.log(fixedBoxPositionB+distanceToBottom-options.threshold) var scrollNum = fixedBoxPositionB - winH; var winST = $win.scrollTop(); //元素高度 小于 窗口减去离顶部的固定距离 if (fixedBoxH < (winH - distanceToTop)) { //滚去的高度 大于 初始化时元素的top位置 if (winST > offsetT) { //console.log(winH - distanceToBottom < fixedBoxH+distanceToTop) if (winST >= ( documentH - distanceToBottom - fixedBoxH)) { //if(this.winH-245 scrollNum) { if (winST > ( documentH - winH - distanceToBottom)) { $element.css({ "position":"fixed", "top":-(winST + distanceToBottom + fixedBoxH - documentH) }); } else { $element.css({ "position":"fixed", "top":winH - fixedBoxH }); } } else { $element.css("position", "static"); } } } }; $.fn.fixbox = function (option) { var argumentsAry = []; for (var i = 0, len = arguments.length; i < len; i++) { argumentsAry.push(arguments[i]); } var newarg = argumentsAry.slice(1); return this.each(function () { var $this = $(this), data = $this.data('fixbox'), options = typeof option == 'object' && option; if (!data) { data = new FixBox(this, options); $this.data('fixbox', data); } //如果 option是字符串,就运行类的这个方法 if (typeof argumentsAry[0] == 'string') { data[argumentsAry[0]].apply(data, newarg); } }); }; $.fn.fixbox.Constructor = FixBox; $.fn.fixbox.defaults = { distanceToTop:0, // 节点上边到页面顶部的距离 distanceToBottom:0,//离底部空余多少时候停止跟随,其实还是fixed定位,只是改变top的值 isFixdeHeight:true,//跟随元素是不是固定高度 isFixdeDocHeight:true,//document是不是固定高度 pagewidth:960,//页面宽度,当窗口宽度 小于 页面宽度 的时候 元素不在跟随。 threshold:0, //阀值,一般小于等于元素的margin-top值,主要解决固定定位整个栏高度大于非固定定位栏的时候,这样就不固定定位了 scrollEventName:"followScroll"// scroll事件名,当元素不需要跟随的时候,可以解除对应的scroll事件 }; })(window.jQuery, window, document); //验证关键词 $(document).ready(function() { function logistics() { var strlogistics_from = ($("#logistics_from").length > 0) ? $.trim($("#logistics_from").val()) : ""; var strInputSubmit = $("#form_logistics input[type='submit']"); if (!strlogistics_from) { if ($("#logistics_from").prop('placeholder').indexOf("起运地错误提示") == -1) { $("#logistics_from").addClass("error").prop('placeholder', "请填写起运地"); strInputSubmit.addClass("btnDisabled").val("请填写起运地"); setTimeout(function () { $("#logistics_from").prop('placeholder', "").removeClass("error"); strInputSubmit.removeClass("btnDisabled").val("提交"); }, 2000); } return false; } var re = new RegExp("^[\w\u4e00-\u9fa5\\s.,;:'\"!@#$%^&*()_+=-]*$"); if (!re.test(strlogistics_from) || strlogistics_from.length < 2 || strlogistics_from.length > 6) { if ($("#logistics_from").prop('placeholder').indexOf("起运地格式错误提示") == -1) { $("#logistics_from").addClass("error").val('').prop('placeholder', "起运地格式错误"); strInputSubmit.addClass("btnDisabled").val("起运地格式错误"); setTimeout(function () { $("#logistics_from").prop('placeholder', "").removeClass("error"); strInputSubmit.removeClass("btnDisabled").val("提交"); }, 2000); } return false; } strInputSubmit.val("加载中...").prop("disabled", "disabled").addClass("btnloading"); $.ajax({ type: "GET", url: "/ecmsapi/index.php?mod=applets&act=city", data: { weizhi: strlogistics_from }, success: function(response) { if (response.data.titleurl) { window.locations.href = response.data.titleurl; } else { alert("未找到相关数据"); } }, error: function(xhr, status, error) { console.log("Error Response:", xhr.responseText); console.log("Error Status:", status); console.log("Error Message:", error); } }); strInputSubmit.removeClass("btnloading").removeProp("disabled").val("提交"); } // 在表单提交时调用 logistics 函数 $("#form_logistics").submit(function(event) { event.preventDefault(); // 阻止默认的表单提交 logistics(); // 调用处理提交的函数 }); });