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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changeable pictures

Status
Not open for further replies.

magicandmight

IS-IT--Management
Aug 27, 2004
77
US
Is there any other way of being able to click a link of a picture and it changes when you click a link to it. I have been using an iframe but it does not look right in IE for me.
 
use javascript. you should look in the javascript forum for a more details but it would be something like

<img src="image1.jpg" id="change">
<a onclick="document.getElementById('change').src='image2.jpg'">image 2</a>
 
But it would probably be best if you simply change the whole page when you click on the new picture -- that way people can even bookmark certain picture that they like.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top