I'll try to be as short as possible with this..
I have built a local business search site for my employer and I wanted to create a sort of 'targeted ads' function on the page. I would like to be able to select from a dropdown list and display an ad in a different iframe based on the selection. This select box is also sent to my php search script so I can't use any values for the options other than duplicate the displayed options as it messes up my search results i.e.
<option value="example">example</option> (i could use this)
I have just started to learn javascript and I'm under the impression that there needs to be an 'onChange' event associated with the select box, and I'm assuming I will have to create 'if' statements for all the variables in the dropdown list....sort of
nChange/process variable from select box/IF variable=??? get url/ target=iframe.
I'm probably way off in my thinking/logic of how this should work, but any help would be great!!
I'm just not sure where to start.
Thanks, Mark39
I have built a local business search site for my employer and I wanted to create a sort of 'targeted ads' function on the page. I would like to be able to select from a dropdown list and display an ad in a different iframe based on the selection. This select box is also sent to my php search script so I can't use any values for the options other than duplicate the displayed options as it messes up my search results i.e.
<option value="example">example</option> (i could use this)
I have just started to learn javascript and I'm under the impression that there needs to be an 'onChange' event associated with the select box, and I'm assuming I will have to create 'if' statements for all the variables in the dropdown list....sort of
I'm probably way off in my thinking/logic of how this should work, but any help would be great!!
I'm just not sure where to start.
Thanks, Mark39