html 自動轉址(自動換頁)寫法
作者: 酷米 日期: 2009-11-06 10:54
網頁自動轉址.. 每次想到都要去找..
不如直接貼過來算了 .. ^^;
a,b 轉載自 : Openwebmail FAQ
a.
----------------------------------------
<html><head>
<meta http-equiv="Refresh"
content="0;URL=http://your_server/cgi-bin/openwebmail
/openwebmail.pl">
</head></html>
----------------------------------------
b.
---------------------------------------
<html>
<body onload=
"window.open('http://your_server/cgi-bin/openwebmail/openwebmail.pl','_top')">
</body>
</html>
----------------------------------------
以下是其它寫法 (非Html)
----------------------------------------
c. PHP header 寫法
---------------------------------------
header("Location: https://fgps.tcc.edu.tw/cgi-bin/openwebmail/openwebmail.pl");
---------------------------------------
d. JavaScript 寫法
---------------------------------------
<script language="Javascript">
<!--
if (screen.width == "800")
{
location="fgps/800/index.php?link=index"
}
else
{
location="fgps/1024/index.php?link=index"
}
//-->
</script>
---------------------------------------
轉載自Tsung's Blog
訂閱
上一篇
返回
下一篇
標籤:
