Jump to content


Photo

Swap image with drop down menu


  • Please log in to reply
1 reply to this topic

#1 benji87

benji87
  • Members
  • PipPipPip
  • Advanced Member
  • 136 posts
  • LocationPortsmouth, UK

Posted 30 October 2006 - 04:57 PM

Hi all im currently working on a fixtures form for rugby games. What im trying to do is when the user selects the team from the drop down list it will show the selected teams badge above.

I am really a novice when it comes to javascript but as far as im aware javascript is the most practical way to do what i want.

I know you can do a basic onchange script in dreamweaver behaviors but it will only change to one image on any selection.

If someone could point me in the driection of a tutorial or script that does exactly that it would be great thanks!

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 30 October 2006 - 05:25 PM

If you mean two drop-downs, you just need to maintain a hash that has each team's badges, and have the onchange of one reset the list of the other.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users