Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Have you purchased a mod and lost your copy? Just file a support ticket through your "My Mods" page.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: Countdown Timer..?  (Read 399 times)

Whitewolf

  • Basic Member
  • *
  • Reputation Power: 1
  • Whitewolf has no influence.
  • Offline Offline
  • Posts: 2
    • View Profile
Countdown Timer..?
« on: September 18, 2010, 05:11:39 AM »
Hi.. I've been searching around and can't seem to find any help on this subject.  I have found a thousand different Countdown Timers and NONE of them are what I'm actually looking for.  What I want is a timer that appears when a link is clicked (replacing the link).. and then when the time expires, the link appears again.  Basically, it's a delay so that a link can only be clicked once every X minutes/seconds.  Does anyone know what I'm talking about, and if so can they tell me where I can find something like this..?  I've seen it in use on a lot of sites, but don't know where to go to find out how to actually make/use it.  Any help would be appreciated..
Logged

dominion

  • Active Member
  • **
  • Reputation Power: 89
  • dominion barely matters.dominion barely matters.
  • Offline Offline
  • Posts: 129
    • View Profile
    • Email
Logged

Whitewolf

  • Basic Member
  • *
  • Reputation Power: 1
  • Whitewolf has no influence.
  • Offline Offline
  • Posts: 2
    • View Profile
Re: Countdown Timer..?
« Reply #2 on: September 20, 2010, 09:52:54 PM »
Well, that appears to be a basic countdown timer.. but that's not exactly what I need.  Unless I'm missing something, that would just display a 'time left' until the specified event time.  What I want is a timer that will actually REPLACE a link and then give the link back when time is up.

For example..  if a user clicks the link to search for something (labeled "Search"), and they must wait at least one full minute before they're allowed to click "Search" again, the page should not display the "Search" link.. instead it would display the timer counting down 60 seconds.  And when the timer reaches zero, the timer would be replaced by the newly (re)available "Search" link.

If possible, I don't want the whole page to refresh to switch the link/timer back and forth.. I would prefer that the page stay loaded and just the link/timer change places (without reloading the whole page each time).
Logged

Danny696

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
Re: Countdown Timer..?
« Reply #3 on: September 21, 2010, 10:39:31 AM »
Use jquery and the .delay function :)
Logged
Project Choosen - 10%
Daniel - Hanson . Com
 


This forum is now closed and has moved to a new location! Click here to find out why.