我重定向到一个新的页面由用户给予一定的特定时间后,类似这样的:什么是元刷新的一些替代重定向方法?
html_meta_redirect('pagename?page_number='.$f_pageNumber, user_get_pref('refresh_delay')*60);
什么是实现这一一些替代方法?
我重定向到一个新的页面由用户给予一定的特定时间后,类似这样的:什么是元刷新的一些替代重定向方法?
html_meta_redirect('pagename?page_number='.$f_pageNumber, user_get_pref('refresh_delay')*60);
什么是实现这一一些替代方法?
试试这个:
<script>
function getLocation() {
window.location = 'placed your URL here';
}
window.setTimeout('getLocation', 5000) // 5000 = 5 seconds
</script>
<?php
header('location:welcome.html');
?>
页眉将重定向到 的welcome.html页面请注意,不应该有重定向之前的任何回音声明
如果你更好地格式化你的代码并添加一个简单的解释,这将更好:) – Jimbo
JavaScript代码setTimeout和窗口.location(但它只能在启用JavaScript的情况下使用)。 –
或者使用PHP的'header'函数发送'Location'头文件。 – CBroe