sonny
08-24-2010, 01:18 AM
Hi I am trying to take static time from a variable "$uct" and make
it live, with counting of minutes seconds etc,
$uct = date("h:ia", time()-GetUserOffset());// displays user logged in current time
I found a lot of javascript, one in particular, but it offsets itself by
manually entering the minutes, I would like to insert my variable containing
the user offset shown above, and I guess I could leave that js setting at 0,
But instead of using the default server time I'd like to use my $variable
anyone know how I can do this by editing localtime in the code below I get
syntax errors trying,
this is what I would like to use:
<script type="text/javascript">
new showLocalTime("timecontainer", "server-php", 0, "short")
</script>
the javascript itself is located below
http://www.dynamicdrive.com/dynamicindex6/localtime.htm
I don't know if I should post that whole code here
Thanks
Sonny
it live, with counting of minutes seconds etc,
$uct = date("h:ia", time()-GetUserOffset());// displays user logged in current time
I found a lot of javascript, one in particular, but it offsets itself by
manually entering the minutes, I would like to insert my variable containing
the user offset shown above, and I guess I could leave that js setting at 0,
But instead of using the default server time I'd like to use my $variable
anyone know how I can do this by editing localtime in the code below I get
syntax errors trying,
this is what I would like to use:
<script type="text/javascript">
new showLocalTime("timecontainer", "server-php", 0, "short")
</script>
the javascript itself is located below
http://www.dynamicdrive.com/dynamicindex6/localtime.htm
I don't know if I should post that whole code here
Thanks
Sonny