![]() |
Redirect to the forum HomePage after 'X' seconds
Hi all, i'm on 4.1.11 , i have create a simple static html page for my main domain www.mydomain.net ..... i would to add a redirect from this main page to the forum Homepage after x seconds. For example, a user visit my main domain page www.mydomain.net, after some seconds i want that will load the forum homepage.... Is it possible to do this? And how? Thanks in advance.
|
You should be able to do it by putting this in your html:
Code:
<meta http-equiv="Refresh" content="X; URL=www.mydomain.net/forum" /> (obviously you'd change the X to the number of seconds you want, and also change the url). You can also do it in javascript. If you look at the bottom part of the STANDARD_REDIRECT template there's code that does it in javascript unless the browser has javascript disabled. |
Quote:
Can you check it please? HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
Try this Script (in headinclude template)
PHP Code:
|
Quote:
I'm not really a js expert or anything, but it looks OK. The only thing I would say is maybe instead of just calling countredirect() to get it started, put onload="countredirect()" in your body tag, that way it won't start until the whole page is loaded. |
Done, thanks kh99 :)
|
Interesting...
Quote:
|
All times are GMT. The time now is 11:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|