var _category = "0"; var _isclicktag = "0"; var _wmode="transparent"; var _src = "http://conde.adsame.com/dolphinfile/vogue/2018/10/0_39.jpg"; var _backimg = "http://"; var _width = parseInt("1000"); var _height = parseInt("120"); var _isexpand = "1"; var _expand_category = "0"; var _expand_isclicktag = "0"; var _expand_wmode="transparent"; var _expand_src = "http://conde.adsame.com/dolphinfile/vogue/2018/10/0_40.jpg"; var _expand_backimg = "http://"; var _expand_width = parseInt("1000"); var _expand_height = parseInt("500"); var _closebtn = "1"; var _closebtn_location = "1"; var _closebtn_color = "0" var _isdefaultshow = "1"; var _showtime = parseInt("0"); var _baoguang = "http://g.cn.miaozhen.com/x/k=2100017&p=7Ipv1&dx=__IPDX__&rt=2&ns=__IP__&ni=__IESID__&v=__LOC__&xa=__ADPLATFORM__&tr=__REQUESTID__&mo=__OS__&m0=__OPENUDID__&m0a=__DUID__&m1=__ANDROIDID1__&m1a=__ANDROIDID__&m2=__IMEI__&m4=__AAID__&m5=__IDFA__&m6=__MAC1__&m6a=__MAC__&o="; var clickUrl = "http://vogue.adsame.com/c?z=vogue&la=0&si=298&cg=90&c=717&ci=905&or=2433&l=20621&bg=20621&b=25480&u=http://e.cn.miaozhen.com/r/k=2100017&p=7Ipv1&dx=__IPDX__&rt=2&ns=__IP__&ni=__IESID__&v=__LOC__&xa=__ADPLATFORM__&tr=__REQUESTID__&mo=__OS__&m0=__OPENUDID__&m0a=__DUID__&m1=__ANDROIDID1__&m1a=__ANDROIDID__&m2=__IMEI__&m4=__AAID__&m5=__IDFA__&m6=__MAC1__&m6a=__MAC__&o=https://equity-vip.tmall.com/agent/mobile.htm?agentId=114505&_bind=true"; var clickUrlEsc = escape(clickUrl); function flashChecker(){ var hasFlash=0; var flashVersion=0; var isIE=/*@cc_on!@*/0; if(isIE){ var swf=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); if(swf){ hasFlash=1; VSwf=swf.GetVariable("$version"); flashVersion=parseInt(VSwf.split(" ")[1].split(",")[0]); } }else{ if(navigator.plugins&&navigator.plugins.length>0){ var swf=navigator.plugins["Shockwave Flash"]; if(swf){ hasFlash=1; var words=swf.description.split(" "); for(var i=0;i'; }else if(category == 0){ html += ''; }else{ return; } if(clicktag != 1 && clickUrl){ html += ''; _base_content = createObj(_category, _src, _backimg, _width, _height, _isclicktag, 0, _wmode); content += _base_content; if(_isexpand == 1){ _expand_content = createObj(_expand_category, _expand_src, _expand_backimg, _expand_width, _expand_height, _expand_isclicktag, _isexpand, _expand_wmode); } if(_closebtn_color == 1){ var _btn_color = 'black'; }else{ var _btn_color = 'white' } var _top; var _left; var show_bg = "url('http://pimg.vogue.com.cn/userfiles/ads/images/open_"+ _btn_color +".png') no-repeat scroll 0 0"; var hide_bg = "url('http://pimg.vogue.com.cn/userfiles/ads/images/close_"+ _btn_color +".png') no-repeat scroll 0 0"; if(_closebtn == 1 && _isexpand == 1){ _set_closebtn(false,_closebtn_location); content += '
'; } content += '
'; if(_baoguang != '' && _baoguang.length>12){ content += ''; } document.write(content); jQuery.cookie = function(name, value, options) { if (typeof value != 'undefined') { options = options || {}; if (value === null) { value = ''; options.expires = -1; } var expires = ''; if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { var date; if (typeof options.expires == 'number') { date = new Date(); date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); } else { date = options.expires; } expires = '; expires=' + date.toUTCString(); } var path = options.path ? '; path=' + options.path : ''; var domain = options.domain ? '; domain=' + options.domain : ''; var secure = options.secure ? '; secure' : ''; document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); } else { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); if (cookie.substring(0, name.length + 1) == (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } }; var _handler; var showing = false; var _cookie_status = $.cookie('STATUS') ? $.cookie('STATUS') : 'open'; if(_isdefaultshow==1 && _isexpand==1 && !showing && _cookie_status=='open'){ _show(); } function _show(){ if( _closebtn == 1 && _isexpand == 1) $('.close_btn').css('background',''); if($('._expand_creative').length>0) return; $('._base_creative').after(_expand_content); setTimeout(_open,300); } function _open(){ $('.cnc_xg_div').animate({height: _expand_height +'px'},800,'swing',function(){ showing = true; if( _closebtn == 1 && _isexpand == 1){ _set_closebtn(showing,_closebtn_location); $('.close_btn').css({'top':_top, 'left':_left, 'background':hide_bg}); } $.cookie('STATUS','open'); if(_showtime > 0){ setTimeout(_hide,_showtime * 1000); } $('._base_creative').remove(); }) } function _hide(){ if(!showing) return; $('._expand_creative').before(_base_content); if( _closebtn == 1 && _isexpand == 1) $('.close_btn').css('background',''); $('.cnc_xg_div').animate({height: _height +'px'},800,'swing',function(){ showing = false; $('._expand_creative').remove(); if( _closebtn == 1 && _isexpand == 1){ _set_closebtn(showing,_closebtn_location); $('.close_btn').css({'top':_top, 'left':_left, 'background':show_bg}); } }) } function _btn_close(){ _hide(); $.cookie('STATUS','close'); } function _close(){ if( showing){ _btn_close(); }else{ _show(); } } function _set_closebtn(s,l){ switch(l){ case '0': _top = 5; _left = 5; break; case '1': _top = 5; _left = _width-50; break; case '2': if(s){ _top = _expand_height-20; _left = 5; }else{ _top = _height-20; _left = 5; } break; case '3': if(s){ _top = _expand_height-20; _left = _expand_width-50; }else{ _top = _height-20; _left = _width-50;; } break; default: break; } }