Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating picture on several pages

Status
Not open for further replies.

waydown

Programmer
Apr 27, 2009
49
GB
Hi,
I don't know if this is the right place to post this question but I think javascript might offer a solution. I have a 125 X 156 jpeg image with some text underneath in the right column of my home (.html) page and the same image and text in the right column of 47 other (.html) pages. When I alter the image and text in my home page I don't want to do the same 47 other times. How can I alter the image and text once and the alteration is reflected in all pages. Will be grateful for all help.
 
the image should just be a reference, so updating the image file shouldn't alter the html documents. To edit the html documents open all the files and use find & replace to edit the files.

another option is includes. this article provides a introductory overview.

in either case js won't be much help.

Jason Meckley
Senior Programmer

faq855-7190
faq732-7259
My Blog
 
If you changed the image file itself it will be updated in all pages that call it.

If you changed the path to the image in your HTML, then it will only change in the file you alter.

If you need to have the same image and text in 47 pages an include would be the bets way. So you only have to change it in one file and it will update all the other pages that call the control file.

Javascript however will be of no help for that.


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top