比如百度收錄了你的a,你希望從a站被點擊訪問后,再跳轉或彈出b站,可以用下面的方式.
當然可以直接用window.open() 彈出窗口,可以多個彈窗,也可以用form的方式.不過兩種方式,都有被360過濾的可能.
self.location 這個方式是轉向,不會被當成廣告過濾.
<script type="text/javascript">
$(function(){
var s=document.referrer;
//獲取來源地址
if(s.indexOf("baidu")>0)
//來源是否有baidu出現
//self.location="http://www.baidu.com/";//原窗口
document.getElementById('openWin').submit();
document.getElementById('openWin2').submit();
//window.open("http://www.taobao.com")
//window.open("http://www.360.com")
});
</script>
<form id="openWin" action="http://www.taobao.com" target="_blank" method="get"></form>
<form id="openWin2" action="http://www.360.com" target="_blank" method="get"></form>
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。