I've added the countdown timer on the bottom of the splash (home page):
http://michaelbay.com/
1.- It appears on Safari on the Mac but not on Firefox.
2.- Is the timer visible on Firefox, IE, & Sadari on Windows XP/Vista?
I've added the countdown timer on the bottom of the splash (home page):
http://michaelbay.com/
1.- It appears on Safari on the Mac but not on Firefox.
2.- Is the timer visible on Firefox, IE, & Sadari on Windows XP/Vista?
If the home page is the splash page then no on Firefox PC
"...take it away but I want more and more, one day I'm gonna lose the war."
www.myspace.com/tremorjames
Works in Google Chrome but not the latest version of Firefox. [Windows XP][PC]
Yes, splash = home.
Firefox + XP, nothing.
"The trouble with quotes on the internet is that you can never know if they're genuine." - Abraham Lincoln
How about IE (Internet Explorer) Vista/XP ?
IE Explorer v. 7.0.5730.13 works [Windows XP][PC]
doesn't work on FF 3.0.10 (XP)
work on IE 8 (xp)
:wtf
Ok, I give up. Usually it works on everything but IE. Now this time it wont appear on FF on Mac or PC.
Any help would greatly be appreciated!
lol, everyone is making girls there new avvy's, ill get in on this![]()
The javascript console of Firefox gave the error message like this..
Maybe "document.all" references in the script are causing the problem. Found some links talking about this..document.all has no properties
http://www.michaelbay.com/countdown.js
09 is not a legal ECMA-262 octal constant
countdown_clock (09, 06, 24, 00, 00, 1);
http://www.codingforums.com/archive/...p/t-69468.html
http://www.webdeveloper.com/forum/sh...d.php?t=128269
Fixed the script, This appears on IE, Firefox and safari (Vista).
function countdown_clock(year, month, day, hour, minute, format)
{
//I chose a div as the container for the timer, but
//it can be an input tag inside a form, or anything
//who's displayed content can be changed through
//client-side scripting.
html_code = '<div id="countdown"></div>';
document.write(html_code);
countdown(year, month, day, hour, minute, format);
}
function countdown(year, month, day, hour, minute, format)
{
Today = new Date();
Todays_Year = Today.getFullYear() - 2000;
Todays_Month = Today.getMonth() + 1;
//Convert both today's date and the target date into miliseconds.
Todays_Date = (new Date(Todays_Year, Todays_Month, Today.getDate(),
Today.getHours(), Today.getMinutes(), Today.getSeconds())).getTime();
Target_Date = (new Date(year, month, day, hour, minute, 00)).getTime();
//Find their difference, and convert that into seconds.
Time_Left = Math.round((Target_Date - Todays_Date) / 1000);
if(Time_Left < 0)
Time_Left = 0;
switch(format)
{
case 0:
//The simplest way to display the time left.
document.getElementById('countdown').innerHTML = Time_Left + ' seconds';
break;
case 1:
//More datailed.
days = Math.floor(Time_Left / (60 * 60 * 24));
Time_Left %= (60 * 60 * 24);
hours = Math.floor(Time_Left / (60 * 60));
Time_Left %= (60 * 60);
minutes = Math.floor(Time_Left / 60);
Time_Left %= 60;
seconds = Time_Left;
dps = 's'; hps = 's'; mps = 's'; sps = 's';
//ps is short for plural suffix.
if(days == 1) dps ='';
if(hours == 1) hps ='';
if(minutes == 1) mps ='';
if(seconds == 1) sps ='';
document.getElementById('countdown').innerHTML = days + ' day' + dps + ': ';
document.getElementById('countdown').innerHTML += hours + ' hour' + hps + ': ';
document.getElementById('countdown').innerHTML += minutes + ' minute' + mps + ': ';
document.getElementById('countdown').innerHTML += seconds + ' second' + sps;
break;
default:
document.getElementById('countdown').innerHTML = Time_Left + ' seconds';
}
//Recursive call, keeps the clock ticking.
setTimeout('countdown(' + year + ',' + month + ',' + day + ',' + hour + ',' + minute + ',' + format + ');',
1000);
}
Last edited by sora; 05-14-2009 at 08:49 PM.
Thanks a lot Sora!
![]()
It works now in Firefox, well done Sora.
There we go! Sora you are da bomb!![]()
"The trouble with quotes on the internet is that you can never know if they're genuine." - Abraham Lincoln
i can sse the timer just fine.. on XP
we decepticons now face our darkest hour:megatron from transformers prime
badda bing!!!!!!!!
it worrrkkks
nice. Was wondering where that went.
This is Ferngully, bitch!
Bookmarks