4 月 272006
 

页面转向代码小全(PHP,asp,JavaScipt)

PHP一般是用 header函数

重定向到  http://www.upsdn.net
<?php
  header("Location:http://www.upsdn.net");
?>
或者

<? header("location:note.php"); ?>
=================================

asp用redirect方法

转向到           http://你的站点/news
<%
response.redirect "http://"&Request.ServerVariables("SERVER_NAME")&"/news"
%>

=================================

j avascript/dhtml

用meta标签完成

<meta http-equiv="refresh" content="1;url=http://xxx.com">

======================================

 回复

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>