![]() |
| | >>> Click
here to download Final Fantasy Ringtones |
| |
#1 As you can see, I've been playing with drop down boxes...I'm starting up a freeweb and I was going to litter an entire page with them XD Would any of you know how I can get a different result for each option? |
| | |
| |
| Former Staff | Is this what you mean? I haven't used these for ages but I just changed the html around a bit. You had onChange on the Select (whole menu) so I guess it appeared when anything changed. I made an OPTION for each character, changed onChange to onClick and put on each one so it alerts when you click each one. I dunno if I did it with exact proper code but it seems to work ![]() <*FORM*> <*SELECT name="quotemenu"*> <*OPTION*>Character Quote of the Week<*BR*><*BR*>*OPTION*> <*OPTION onClick="alert('Yuna! This is our story! Now let\'s see this thing through together.')"*>Tidus*OPTION*> <*OPTION onClick="alert('I like Tidus')"*>Yuna<*/OPTION*> <*OPTION onClick="alert('I like Blitzball')"*>Wakka*OPTION*> <*OPTION onClick="alert('I wear belts')"*>Lulu<*/OPTION*> <*/SELECT*> <*/FORM*> Remove all the *s |
| | |
| Site Staff | *nods*, that is the correct javascript ![]() I would recommend looking into Dynamic Drive as they have alot of neat scripts like that ^_^ |
| | |
| | I'm just curious, but obviously javascript and other things can be used for evil and probably will be dealt with on a case-by-case basis. But buh? It's allowed? I guess as long as it's not too annoying, but obviously somebody can put a sig that spams you (unintentionally or whatever) with 'PG is amzing!' messages. =( |
| | |