[HTML]http://www.minisitegallery.com/blog/php-javascript-countdown-script-with-timezone-setting.html[/HTML]
which is supposed to count down to a specified date and switch to a new webpage after that date. The original coder had included this quote with the code:
WARNING…
This script is not created with proper error trapping. If it’s not working, then something is wrong with your implementation. And I can’t provide support for it either. Oh yeah, it’s poorly documented to.
So use at in anyway you want but don’t bug me with it.
It uses PHP to acquire the date from the server and javascript to keep refreshing the live countdown timer. Ok the javascript counter works fine but the redirect isn't working.
Expand|Select|Wrap|Line Numbers
- document.location.href = "<?=$_GET['data']?>";
- alert("New Redirect Page="+ document.location.href);
http://www.oldwebpage.com
Then I click the OK button to the alert and for some reason it's substituting an odd redirect location as follows:
http://www.oldwebpage.com/www.newwebpage.com
Not sure why it is attaching both variables during runtime.