Questions? Call (860)407-2687
find us on:

Example Code to Auto Refresh More than 1 Image on Web Page

short url:

Below are three dummy images set refresh every 5 seconds image #1, 6 seconds image #2 and 7 seconds image #3. The trick is to make sure each image has a different, unique ID.

The html code for mulitple images on a single web is found in the text area below. Note: make sure to alter the html image code that is red to meet your needs, ie proper image ID, number of seconds between refreshes, etc. and make sure to specify a unique ID for EACH image and make sure the associated Javascript code refects that image id.

<img alt="Your desired image alt text." id="idOfImage1ToReload" onload="javascript:(function(){setTimeout(function(){document.getElementById('idOfImage1ToReload').src=document.getElementById('idOfImage1ToReload').src.split('?')[0] + '?time=' + new Date().getTime();},5000);}())" src="the url/web address to your image" title="Your desired image title text." />

CONTENT RELATED TO EXAMPLE CODE TO AUTO REFRESH MORE THAN 1 IMAGE ON WEB PAGE



Delete Multiple All Google Voice Text Message

... g them. This bookmarklet ALSO works to DELETE items from the Google Voice Archive as well. This free bookmarklet (bookmarklet is basically the same as a web browser extension except it works in ALL we ...

How To Put Mouse Cursor Inside Input Text Tex

... it because the user forgot to type something in one of the input fields like a textbox or textarea. An alert message to notfify them of this is great but even better is putting the mouse cursor IN tha ...

Asterisk Password Revealer Bookmarklet

... sterisks in web browser log in forms as simple as a single mouse click. This is a 100% free bookmarklet that makes revealing passwords underneath asterisks in web browser log in forms as simple as a s ...

COMMENTS ON EXAMPLE CODE TO AUTO REFRESH MORE THAN 1 IMAGE ON WEB PAGE

Feel free to submit your comment below. Anything that does not contribute and is just spam will automatically be deleted. Questions marked by * are required. Comments are checked by a human to make sure they are not spam/automated and are on topic and related to Example Code to Auto Refresh More than 1 Image on Web Page.

NAME:
EMAIL:
COMMENT:
HTML OK. Allowable HTML tags include: <p></p>, <i></i>, <b></b>, <em></em>, <strong></strong>, <ul><li></li></ul>, <ol><li></li></ol>
Question ❔
Back to Top