html頁面如何實(shí)現(xiàn)過兩秒跳轉(zhuǎn)至其他頁面,在本文主要是通過refresh及URL兩個(gè)屬性實(shí)現(xiàn),具體示例代碼如下,感興趣的朋友可以參考下
代碼如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>無標(biāo)題文檔</title>
</head>
<body>
<if condition="$id eq 1">
<meta http-equiv="refresh" content="2; URL=__APP__/index.php/Select/chaxun">
{$rows}
<font color="#FF0000">兩秒后自動(dòng)跳轉(zhuǎn)!</font>
</if>
<foreach name="rows" item="val">
{$val.id} ------ {$val.name}
<hr />
<a href="__APP__/index.php/Select/chaxun">點(diǎn)擊返回繼續(xù)查詢!</a>
</foreach>
</body>
</html>