Re: [OT] JS snippet needed

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 66892
interpreted = N
texte = Donovan, Here's something I threw together off the top of my head. Haven't tested it, but it should work or at least get you claose... function updateimage(whichpic){ var pics = new Array(); // create an array for the images pics[1] = new Array("red.gif","blue.gif","green.gif","yellow.gif"); if(document.layers){ //NN4 DOM  document.piconeDiv.document.images['__COLOR'].src="images/"+pics[whichpic]; }else{ //Other DOMs document.__COLOR.src="images/"+pics[whichpic]; } Marc Donovan Brooke wrote: > Hello, > I'm trying to update an image when a user selects > between the different options in a select menu. > > Something like: > > -- > Marc Donovan Brooke wrote: > Hello, > I'm trying to update an image when a user selects > between the different options in a select menu. > > Something like: > > -- >