code help please
- Started
- Last post
- 18 Responses
- stevegee
I'm not sure how to do this... PHP, JS, etc...
I want to make a page that has a dropdown menu with 13 options on it and when one of the various options are chosen, make it change the information below to the corrresponding information to that option.
thx in advance for the help!
- ********0
php'll do it nicely.
the value of each of the options on your drop down should be the page itself and a variable to determine the content.
capiche?
- ********0
Cats
Dogs
echo "$id";
- ********0
blast NT code block...
- paraselene0
lol
i wondered what the hell kind of answer that was.
- ********0
a grumpy arsed answer, entirely in keeping with moths public persona.
- ********0
a grumpy arsed answer, entirely in keeping with moths public persona.
MX_OnD
(Aug 18 05, 04:43)I am NOT fucking gumpy today. Jesus Christ.............. The one day I'm fine......... Moan moan moan about moth.
- ********0
a grumpy arsed answer, entirely in keeping with moths public persona.
MX_OnD
(Aug 18 05, 04:43)I am NOT fucking gumpy today. Jesus Christ.............. The one day I'm fine......... Moan moan moan about moth.
determinedmoth
(Aug 18 05, 04:50)now ye are ;)
- paraselene0
pfft. he's fine. his bark is worse than his bite.
- ********0
pfft. he's fine. his bark is worse than his bite.
paraselene
(Aug 18 05, 04:59)Remember who I made cry...
- paraselene0
shoot. prolly deserved it.
anyhoo. time for lunch.
- scarabin0
you can do this with divs. observe:
http://scarabin.net/photo/sv12/i…
except use your dropdowns instead of my links.
- stevegee0
OK - don't get grumpier with my response... I can hear the under breath mumblin now (what a fuckin moron... etc.)
MX - yea, no, I don't capiche a bit... I don't know PHP except to modify a form or something like that.
Scarabin - that might work... any chance I can get you to explain the codebreakdown to me?
- scarabin0
well first you make a div, and give it a name. then you have an event like my mouseover which replaces the content of the div when triggered. i'm sure you can do this with your dropdown with some experimenting. i'd tell ya how but i've never done anything with dropdowns before except simple forms.
the event come looks like this:
onMouseOver="document.getElement... blah blah content'"
the content there can be html or text; just pop it in there.
- scarabin0
ha, i meant "event code", not "event come"
- stevegee0
scarabin- tight, thanks... I'm going to play a bit and will let you know how I do.
thx.
- scarabin0
good luck
- stevegee0
Just in case you ever check back, I said I'd let you know how I make out, well I ended up using PHP and not a drop down menu, worked like a charm.
thx.
- jah_0