Yes, jmrker, but your script depends on (a) the users' computer clocks being set correctly and (b) the users being in the same time zone as the server [though it's easy to adjust for the latter].
See how I pass the server time in, from PHP, and then use the discovered offset in all other calculations.
Yes, and if my battery dies, my watch is only right twice a day.
I, for one, do not worry about other's clock settings in JS.
I would rely on the server's clock, much like you have done, if it is that important.
I also left the logic available to adjust for MST using UTC and/or the gettimezone() function. I'm not in MST so I left that as an exercise for the student.
Yes, and if my battery dies, my watch is only right twice a day.
I, for one, do not worry about other's clock settings in JS.
I would rely on the server's clock, much like you have done, if it is that important.
I also left the logic available to adjust for MST using UTC and/or the gettimezone() function. I'm not in MST so I left that as an exercise for the student.
hi again old pendent sent me a script so that my images would change?
now is there any way a radio stream could go in that script so that when our DJ'S come on air with there stream the image changes with the stream?
hi again old pendent sent me a script so that my images would change?
now is there any way a radio stream could go in that script so that when our DJ'S come on air with there stream the image changes with the stream?
I'm not sure I understand the question in the first line.
Is the script you are using posted in an earlier part of this thread (which post)
or is it an entirely different portion of code?
What is in the radio stream that contains the name or ID of the DJ currently on air?
Where does the information come from to change the image display?
Do you have a link to the site to view? What does the code you are using look like?
Yes, jmrker, but your script depends on (a) the users' computer clocks being set correctly and (b) the users being in the same time zone as the server [though it's easy to adjust for the latter].
See how I pass the server time in, from PHP, and then use the discovered offset in all other calculations.
hi there the script don't work that you gave me
i tried everything but i were think of using this script
Looking at the contents of picarr[ ] and then where you do the switch (picarr[pntr]), not a single one of your case values matches any of your picarr[x] values, so your switch will *always* end up getting to the default: and so thelink and endlink will always be just "".
Which means you could throw all this code away and just do
Code:
thelink = endlink = "";
and get the same effect.
I won't even comment any more on the fact that you are using obsolete document.write code.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Looking at the contents of picarr[ ] and then where you do the switch (picarr[pntr]), not a single one of your case values matches any of your picarr[x] values, so your switch will *always* end up getting to the default: and so thelink and endlink will always be just "".
Which means you could throw all this code away and just do
Code:
thelink = endlink = "";
and get the same effect.
I won't even comment any more on the fact that you are using obsolete document.write code.
well um isent there a image rotator that does work
as the one i got given doesnt work
Did you ever even try the code I gave you in my post #10?
I hate to say it, but I feel you are just taking code and throwing it against the wall and hoping that some of it will stick. Might do as well just showing random images at this point.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Did you ever even try the code I gave you in my post #10?
I hate to say it, but I feel you are just taking code and throwing it against the wall and hoping that some of it will stick. Might do as well just showing random images at this point.
oh god no im throwing it against the wall mate lol god no it just dont work
for me