|
-
Jul 27th, 2001, 12:43 PM
#1
Thread Starter
Junior Member
Java Script - Drop down menus
Hi All,
I'm working on a web site that uses drop down menus. I've downloaded some javascript, but it's not very stable. If you're not at the top of the page in your browser, the drop down only drops for a split-second.
I found some other javascript which is much more stable, but my problem is that the customer wants to alternate the colors. For example, the first, third, fifth, ... items on the menu would be blue, and the second, fourth, sixth,... items would be yellow.
With most of the script I've found, you can't alternate the colors. Any ideas???
-
Jul 27th, 2001, 02:26 PM
#2
can you show us some code?
-
Jul 27th, 2001, 08:11 PM
#3
Fanatic Member
try:
Code:
<form NAME = "frmMain">
<select NAME = "lstOptions">
<option STYLE = "color:yellow;background-color:blue;">Number 1</option>
<option STYLE = "color:blue;background-color:yellow;">Number 2</option>
<option STYLE = "color:yellow;background-color:blue;">Number 3</option>
<option STYLE = "color:blue;background-color:yellow;">Number 4</option>
<option STYLE = "color:yellow;background-color:blue;">Number 5</option>
<option STYLE = "color:blue;background-color:yellow;">Number 6</option>
</select>
</form>
-
Jul 30th, 2001, 06:39 AM
#4
Thread Starter
Junior Member
Thanks for the last reply, but I'm looking for drop down menus like on the microsoft site, only I need to be able to alternate the colors.
In the files attached, the NewMain.inc is the unstable menus. The Copy of NewMenu.asp is the stable menus.
-
Jul 30th, 2001, 08:45 AM
#5
well that isn't javascript, it is Dhtml. why don't you just take it off of that site. ya steal from microsoft  if you search you might find that same thing in the forum.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|