1.

<meta http-equiv="refresh" content="停留秒數;url=新的網址">

範例:

<html>
<head>
<meta http-equiv="refresh" content="0;url=http://a761217a.pixnet.net/blog">
</head>
</html>


2.

<body onload="window.open('新網址','_top')">
</body>

範例:

<html>
<body onload="window.open('http://a761217a.pixnet.net/blog','_top')">
</body>
</html>


3.

<Script Language="JavaScript">
setTimeout("location.href='新網址'",停留時間);
</Script>

範例:

<html>
<body>
<Script Language="JavaScript">
setTimeout("location.href='http://a761217a.pixnet.net/blog'",1000);//1秒
</Script>
</body>
</html>

4.

<Script Language="JavaScript">
<!--
location.href= ('新網址');
-->
</Script>

範例:

<html>
<body>
<Script Language="JavaScript">
<!--
location.href= ('http://a761217a.pixnet.net/blog');
-->
</Script>
</body>
</html>

arrow
arrow
    文章標籤
    轉址 自動轉址 網頁轉址
    全站熱搜
    創作者介紹
    創作者 小林 的頭像
    小林

    清水健太 Shimizu Kenta 之 人性本健

    小林 發表在 痞客邦 留言(0) 人氣()