function menuFix() { //检测是否有xl_nav Freedom 2011-12-07 begin var ishave = document.getElementById("xl_nav"); if(ishave==null || ishave==undefined)return; //end var sfEls = document.getElementById("xl_nav").getElementsByTagName("li"); for (var i=0; i0? " ": "") + "sfhover"; } sfEls[i].onMouseDown=function() { this.className+=(this.className.length>0? " ": "") + "sfhover"; } sfEls[i].onMouseUp=function() { this.className+=(this.className.length>0? " ": "") + "sfhover"; } sfEls[i].onmouseout=function() { this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"), ""); } } } window.onload=menuFix; var isIE = (document.all) ? true : false; var $pic_turn = function (id) { return "string" == typeof id ? document.getElementById(id) : id; }; var Class = { create: function() { return function() { this.initialize.apply(this, arguments); } } } var Extend = function(destination, source) { for (var property in source) { destination[property] = source[property]; } } var Bind = function(object, fun) { return function() { return fun.apply(object, arguments); } } var Each = function(list, fun){ for (var i = 0, len = list.length; i < len; i++) { fun(list[i], i); } }; //ie only var RevealTrans = Class.create(); RevealTrans.prototype = { initialize: function(container, options) { this._img = document.createElement("img"); this._a = document.createElement("a"); this._timer = null;//计时器 this.Index = 0;//显示索引 this._onIndex = -1;//当前索引 this.SetOptions(options); this.Auto = !!this.options.Auto; this.Pause = Math.abs(this.options.Pause); this.Duration = Math.abs(this.options.Duration); this.Transition = parseInt(this.options.Transition); this.List = this.options.List; this.onShow = this.options.onShow; //初始化显示区域 this._img.style.visibility = "hidden";//第一次变换时不显示红x图 this._img.style.width = this._img.style.height = "100%"; this._img.style.border = 0; this._img.onmouseover = Bind(this, this.Stop); this._img.onmouseout = Bind(this, this.Start); isIE && (this._img.style.filter = "revealTrans()"); this._a.target = "_blank"; $pic_turn(container).appendChild(this._a).appendChild(this._img); }, //设置默认属性 SetOptions: function(options) { this.options = {//默认值 Auto: true,//是否自动切换 Pause: 2000,//停顿时间(微妙) Duration: 1,//变换持续时间(秒) Transition: 23,//变换效果(23为随机) List: [],//数据集合,如果这里不设置可以用Add方法添加 onShow: function(){}//变换时执行 }; Extend(this.options, options || {}); }, Start: function() { clearTimeout(this._timer); //如果没有数据就返回 if(!this.List.length) return; //修正Index if(this.Index < 0 || this.Index >= this.List.length){ this.Index = 0; } //如果当前索引不是显示索引就设置显示 if(this._onIndex != this.Index){ this._onIndex = this.Index; this.Show(this.List[this.Index]); } //如果要自动切换 if(this.Auto){ this._timer = setTimeout(Bind(this, function(){ this.Index++; this.Start(); }), this.Duration * 1000 + this.Pause); } }, //显示 Show: function(list) { if(isIE){ //设置变换参数 with(this._img.filters.revealTrans){ Transition = this.Transition; Duration = this.Duration; apply(); play(); } } this._img.style.visibility = ""; //设置图片属性 this._img.src = list.img; this._img.alt = list.text; //设置链接 !!list["url"] ? (this._a.href = list["url"]) : this._a.removeAttribute("href"); //附加函数 this.onShow(); }, //添加变换对象 Add: function(sIimg, sText, sUrl) { this.List.push({ img: sIimg, text: sText, url: sUrl }); }, //停止 Stop: function() { clearTimeout(this._timer); } };
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F995eabcce7a2559f7ba54273dbbe04aa' type='text/javascript'%3E%3C/script%3E")); var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-36099661-1']); _gaq.push(['_setDomainName', '.liwai.com']); _gaq.push(['_setAllowHash', false]); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
我们营业的时间
8:00-24:00
  • 点击这里给我发消息
  • 咨询电话:15211987048
var tips; var theTop = 145/*这是默认高度,越大越往下*/; var old = theTop; function initFloatTips() { tips = document.getElementById('divQQbox'); moveTips(); }; function moveTips() { var tt = 50; if (window.innerHeight) { pos = window.pageYOffset } else if (document.documentElement && document.documentElement.scrollTop) { pos = document.documentElement.scrollTop } else if (document.body) { pos = document.body.scrollTop; } pos = pos - tips.offsetTop + theTop; pos = tips.offsetTop + pos / 10; if (pos < theTop) pos = theTop; if (pos != old) { tips.style.top = pos + "px"; tt = 10; //alert(tips.style.top); } old = pos; setTimeout(moveTips, tt); } initFloatTips(); function OnlineOver() { //document.getElementById("divMenu").style.display = "block"; document.getElementById("divOnline").style.display = "block"; document.getElementById("divQQbox").style.width = "145px"; } function OnlineOut() { //document.getElementById("divMenu").style.display = "block"; document.getElementById("divOnline").style.display = "block"; } if (typeof (HTMLElement) != "undefined") //给firefox定义contains()方法,ie下不起作用 { HTMLElement.prototype.contains = function(obj) { while (obj != null && typeof (obj.tagName) != "undefind") { //通过循环对比来判断是不是obj的父元素 if (obj == this) return true; obj = obj.parentNode; } return false; }; } function hideMsgBox(theEvent) { //theEvent用来传入事件,Firefox的方式 if (theEvent) { var browser = navigator.userAgent; //取得浏览器属性 if (browser.indexOf("Firefox") > 0) { //如果是Firefox if (document.getElementById('divOnline').contains(theEvent.relatedTarget)) { //如果是子元素 return; //结束函式 } } if (browser.indexOf("MSIE") > 0) { //如果是IE if (document.getElementById('divOnline').contains(event.toElement)) { //如果是子元素 return; //结束函式 } } } /*要执行的操作*/ //document.getElementById("divMenu").style.display = "block"; document.getElementById("divOnline").style.display = "block"; document.getElementById("divQQbox").style.width = "26px"; }