[B][U]SORRY FOR THE LONG EXPLANATION
Right now I am using [B]IFrames
on the timer page with a
[CODE][I][COLOR=”red”]HTML:[/[/COLOR]I] <meta http-equiv=”refresh” content=”10″>
and 1 image I am “stretching”
[CODE][I][COLOR=”Red”]PHP & HTML:[/COLOR][/I] <img src=”../images/timebox1.gif” style=”background-repeat:no-repeat;” alt=”” height=”13″ width=”<?php echo $_SESSION[‘timer’]; ?>” align=”top” border=”0″ />
It’s quite ugly especialy in IE8 and in Macs Safari (blinking, framebreaking etc)
I know it possible in Java to make a function on
the main site which can update my timer instantly:
[CODE][I][COLOR=”red”]PHP:[/COLOR][/I] $_SESSION[‘timer’]–;
when it reach 1 it redirect people to the Index page
[CODE][I][COLOR=”red”]PHP:[/COLOR][/I] if($_SESSION[‘timer’]==1) { $dat_update= mysql_query(“UPDATE Members SET online=’1′ WHERE memid=’$mid'”); $delay = ‘0’; $url = “../index.php”; echo ‘<meta http-equiv=”refresh” content=”‘.$delay.’;url=’.$url.'” target=”_top”>’; end; die; }
(Forced logout)
Where the session timer is reset to 60 again when the user logs in again.
[B]The use is following:
At login the session timer is set as default as 60 (equal to 6 minutes).
Every time the user does anything on the page the timer is reset to 60.
It count down every 10 sec ( where it makes the image 1 pixel smaller in the horizontal axel.
when it reach 1, it throw people out out on the main page.
the image is 13x1pixel but is stretch out to 13×60 pixels
and the done one pixel smaller every 10 sec.
is this possible in Java!!!
[CODE]function scrinktimer() {
What ever java
}
and the instead of the ugly iframe use
[CODE]<td a id=”scrinktimer()”></td>
there smoothly shrinks the image
??
Flemming