Not logged in. · Lost password · Register
Forum: Skins RSS
JavaScript Problem
Avatar
Azimuth #1
Member since Jan 2003 · 427 posts · Location: Chicago, Illinois - USA
Group memberships: Members
Show profile · Link to this post
I think I tracked down a problem that has been bugging me for a while with a skin of mine based on eXtended.

In  the ReloadPage() JavaScript function, I removed...

if(SecondsRemain)
  Countdown = window.setTimeout("location.href=xxx?refresh'",Math.min(Math.max(5000,SecondsRemain*1000),30000));

And added this to UpdateTime()...

if(SecondsRemain == 1) location.href=xxx?refresh';

No more hanging up at t=0! This also stopped the refreshes coming every 30 seconds.
This post was edited on 2006-05-14, 23:36 by Unknown user.
Avatar
Azimuth #2
Member since Jan 2003 · 427 posts · Location: Chicago, Illinois - USA
Group memberships: Members
Show profile · Link to this post
:angry: Bah! Never mind. Still hanging up at zero...
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Page created in 151 ms (72.8 ms) · 42 database queries in 68.7 ms
Current time: 2018-12-14, 21:37:38 (UTC +00:00)