I would like to use the same Javascript twice on the same page. Is there a work around to do this?
Basically I am going to add this script in a form and I need them to have the option of selecting two images.
here is the script:
thanks,Code:<script language="javascript"> function changePicture() { var selection = document.DropPicture.Picture.selectedIndex; //grabs what user selected document.pic.src = document.DropPicture.Picture.options[selection].value; //adds 'selection' to grab 'value' } </script> <form name="DropPicture"> <select name="Picture" onChange="changePicture()"> <!---Calls The Function---> <option selected>Pictures! <option value="1.gif">Picture One <option value="2.gif">Picture Two </select> </form></td> <td width="84%"><img src="blank.gif" name="pic" border="0">
Nick



Reply With Quote

Bookmarks