Thread: Timebased event
View Single Post
Old 10-04-2009, 06:08 PM   #2 (permalink)
adamdecaf
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

javascript Code:
$(document).ready(function() {

  // This will hold our timer
  var myTimer = {};

    // Set the timer for 2 seconds
    myTimer = $.timer(2000, function(){

      // Load the new image.
      $("#head").load("HeaderChanger.php");

   });

});

I'm giving credit to ETbyrne for his jQuery Timer Plugin. Just change the "2000"(ms) to how ever long you want the delay to last.

Attached you will find the zip file that contains the entire plugin distribution. VirusTotal Scan
Attached Files
File Type: zip jquery-timer.zip (20.5 KB, 8 views)
__________________
My Site
adamdecaf is offline  
Reply With Quote
The Following User Says Thank You to adamdecaf For This Useful Post:
Tanax (10-04-2009)