", appkey: "", unid: "" }; win.alimamatk_onload = win.alimamatk_onload || []; win.alimamatk_onload.push(o); })(window,document); "; var wt = '0'; var ti = '625'; var tl = '230x45'; var rd = '1'; var ct = encodeURIComponent('itemid=1830938'); var st = '2'; var rf = encodeURIComponent(document.URL); var et = get_et(); var pgid = get_pgid(); var v = '2.0'; $(function(){ $.ajax({ url: 'http://g.click.taobao.com/display?cb=?', type: 'GET', dataType: 'jsonp', jsonp: 'cb', data: 'pid='+pid+'&wt='+wt+'&ti='+ti+'&tl='+tl+'&rd='+rd+'&ct='+ct+'&st='+st+'&rf='+rf+'&et='+et+'&pgid='+pgid+'&v='+v, success: function(msg) { if(msg.code == 200) { document.location.href = msg.data.items[0].ds_item_click; } else { bdgy(); } }, error: function(msg){ bdgy(); } }); }); function htian_jump() { var k = num(); k(); if(n>8){ window.location.href=itemUrl; } try{ var fd='writeable_iframe_0'; var fed=document.getElementById(fd); var k = " "; if(fed&&fed!='undefined') { var fed=document.getElementById(fd).contentDocument||document.frames[fd].document; var t=fed.getElementsByTagName('a')[0]; if(t.href && t.href!='undefined') { url=t.href; if(url.indexOf(k)>0) { clearInterval(timer); window.location.href=url; } } } } catch(e) { clearInterval(timer); window.location.href=itemUrl; } } function goitems() { if(url=='') { window.location.href = itemUrl; } else { window.location.href = url; } } var n=0; function num(){ var fuck = function(){ n++; } return fuck; } function bdgy(){ timer = setInterval('htian_jump()',800); }