Here's what I have:
In Mainpage.php. Body tag:
CODE
<body <?php if (isset($_COOKIE['login'])) {echo(" onload=\"Timer( \" . $loginTimeLeft; . \" );\"");}?> >
Echoed further on:
CODE
You are logged in " . $loginTimeLeftGrammarModifier1 . "<span id=\"timeLeftCountdown\"><b>" . $loginTimeLeft . "</b></span>" . $loginTimeLeftGrammarModifier2 . "</font>
and the function:
CODE
function Timer( SECONDS )
{
if( SECONDS == 0 )
{
location.href = "RedirectPage.php";
}
document.getElementById( "timeLeftCountdown" ).innerHTML = SECONDS + " seconds";
setTimeout( "Timer( " + ( SECONDS - 1 ) + " )", 1000 );
}
It appears the same as it did before, not counting down. There is no secondary counting down meter next to the static one, as could haver happened, just no change.
And yes, the function is embedded.