|
<title>正在跳往指定页面...</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.2.min.js"></script>
<script src="http://a.tbcdn.cn/apps/top/x/sdk.js?appkey=21261801"></script>
<SCRIPT language=javascript type=text/javascript>
$(document).ready(function() {
function items_convert(num_iid) {
TOP.api('rest', 'get', {
method: 'taobao.taobaoke.widget.shops.convert',
seller_nicks: num_iid,
outer_code:'9806818',
fields: 'click_url'
},
function(resp) {/*
if(resp.error_response){
alert('对不起!接口错误,请稍后再试或报告管理员解决此问题!感谢支持!错误码为:'+resp.error_response.msg);
return false;
}*/
var respItems = resp.taobaoke_shops.taobaoke_shop;
var click_url =respItems[0].click_url;
//alert(shop_click_url);
if(click_url){
//window.location.href=shop_click_url;
$("#goto").attr("href", click_url);
}
})
}
iid = "嘉诺德旗舰店";
items_convert(iid);
});
</script>
</head>
<body>
<a id="goto" rel="nofollow" style="display:none">若无法无法跳转,请点击这里.... 进入</a>
<script type="text/javascript">
setTimeout(function(){
document.getElementById("goto").click();
}, 400);
</script>
上面的页面 我自己也可以做出来么?
球高人赐教 |
|