Hi all, thanks for taking the time to view my posting, i really appreciate it.
At present, I’m developing a search form, that allows users to search up to 3 places, using a div-based dropdown. The first place to search would be displayed next to the form, and the other 2 hidden. On click of this first search option, a menu with all 3 items would appear, and the user could then choose any of the 3 places to search. The selected search image item would then replace the original search image.
The reason why i’m not using a select list, is because i am using images instead of text.
I’m not sure what the best way forward is to accomplish this, and thought i would as the experts’ advice if i may. Any code examples, or help would be more than welcome.
I hope this diagram will be of some help in explaining the task:
[CODE]http://www.andyram2k.com/jsissue.jpg
I’m not sure if an image array or an array of divs would be the best method of suppending onclick. Thanks for your time in advance.
[CODE]<style>
.dropmenudiv {
BORDER-RIGHT: #262628 1px solid; BORDER-TOP: #262628 1px solid; Z-INDEX: 100; FONT: 12px Verdana; BORDER-LEFT: #262628 1px solid; WIDTH: 19px; COLOR: #ffffff; BORDER-BOTTOM: #660096 2px solid; POSITION: absolute; TOP: 0px; BACKGROUND-COLOR: #474747; TEXT-ALIGN: left; background-color: #D7D6DC;
}
.dropmenudiv IMG {
border: 0;
}
.dropmenudiv A {
DISPLAY: block; WIDTH: 19px; COLOR: #ffffff; BORDER-BOTTOM: #262628 1px solid; TEXT-DECORATION: none
}
* HTML .dropmenudiv A {
WIDTH: 19px; COLOR: #ffffff; BACKGROUND-REPEAT: no-repeat; TEXT-DECORATION: none
}
.dropmenudiv A:hover {
COLOR: #ffffff; BACKGROUND-REPEAT: no-repeat; BACKGROUND-COLOR: #037c2c; TEXT-DECORATION: none
}
</style>
<div class=”dropmenudiv”>
<div id=”search1″><a href=”#” title=”Search 1″><img src=”image1.gif” alt=”Search 1″ /></a></div>
<div id=”search2″><a href=”#” title=”Search 2″><img src=”image2.gif” alt=”Search 2″ /></a></div>
<div id=”search3″><a href=”#” title=”Search 3″><img src=”image3.gif” alt=”Search 3″ /></a></div>
</div>