openwebmail 自動轉址
by 資訊藝術家 • 2009/04/08 • linux • 0 Comments
openwebmail 因為是在 cgi-bin 裡面, 網址往往都很長, 所以寫的 index.htm 來自動轉址
語法如下 :
HTML 語法
<html><head> <meta http-equiv="Refresh" content="0;URL=http://your_server/cgi-bin/openwebmail/openwebmail.pl"> </head></html>
<html> <body onload="window.open('http://your_server/cgi-bin/openwebmail/openwebmail.pl','_top')"></body> </html>
PHP 語法
header("Location: https://fgps.tcc.edu.tw/cgi-bin/openwebmail/openwebmail.pl");
JavaScript 語法
<script language="Javascript"> if (screen.width == "800") { location="fgps/800/index.php?link=index" } else { location="fgps/1024/index.php?link=index" } </script>