Can you tell me why this script is working under IE 5 and not under Netscape 4.7
<SCRIPT LANGUAGE="JavaScript">
<!--
var today = new Date();
function sec()
{
jour=Date.parse("Jan 1, " + (today.getFullYear() + 1) + " GMT"
- Date.parse(new Date);
return jour/1000;
}
function min()
{
return Math.floor((sec()-hr()*3600-j()*86400)/60);
}
function hr()
{
return Math.floor((sec()-j()*86400)/3600);
}
function j()
{
return Math.floor(sec()/86400)
}
function fs()
{
return Math.floor((sec()-j()*86400-hr()*3600-min()*60));
}
document.write(j()+" jours "
;
document.write( (hr()-1<0?23
hr()-1)) +" heures "
;
document.write(min()+" minutes "
;
document.write(fs());
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!--
var today = new Date();
function sec()
{
jour=Date.parse("Jan 1, " + (today.getFullYear() + 1) + " GMT"
return jour/1000;
}
function min()
{
return Math.floor((sec()-hr()*3600-j()*86400)/60);
}
function hr()
{
return Math.floor((sec()-j()*86400)/3600);
}
function j()
{
return Math.floor(sec()/86400)
}
function fs()
{
return Math.floor((sec()-j()*86400-hr()*3600-min()*60));
}
document.write(j()+" jours "
document.write( (hr()-1<0?23
document.write(min()+" minutes "
document.write(fs());
</SCRIPT>