faqts : Computers : Programming : Languages : JavaScript : Images

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 17 people (47%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How do I display images in one frame (a shopping cart) by clicking on the same images in another frame (catalog of products)

Mar 28th, 2002 21:07
Joshua IdontTHINKso, Salvo Montalbano,


All you have to do is use document.image.src='image.gif'. for example, 
say that you are in a frame named 'catalog' and you want to change a 
picture named 'template' in a frame called 'viewer'. You would type 
something like :
<img name='vase001' src='vase001.jpg' 
onclick="catalog.template.src='vase001.jpg'">