943,691 Members | Top Members by Rank

Ad:
Nov 20th, 2008
0

Javascript for changing image every 2 seconds

Expand Post »
Javascript for changing image of image tag every 2 seconds
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
manaraghu is offline Offline
1 posts
since Nov 2008
Nov 20th, 2008
0

Re: Javascript for changing image every 2 seconds

You know google has TONS of examples of how to do this, but here is something i wrote really fast.

JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. setInterval(function() {
  2. document.getElementById('ImageID').src='imagepath?rd=' + new Date()
  3. }, 2000)
Reputation Points: 25
Solved Threads: 7
Junior Poster
Drew is offline Offline
166 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Return value based upon visibility of form field?
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: How to search data?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC