0

在用户给定的特定时间后,我将重定向到新页面,如下所示:

html_meta_redirect( 'pagename?page_number='.$f_pageNumber, user_get_pref( 'refresh_delay' )*60 );

有哪些替代方法可以实现这一点?

4

2 回答 2

1
   <?php
    header('location:welcome.html');
    ?>

header 将重定向到welcome.html 页面请注意重定向前不应有任何echo 语句

于 2013-06-20T10:05:26.867 回答
0

尝试这个:

<script>
function getLocation() {
  window.location = 'placed your URL here';
}
window.setTimeout('getLocation', 5000) // 5000 = 5 seconds
</script>
于 2013-06-20T10:00:24.710 回答