Results 1 to 5 of 5

Thread: Java Script - Drop down menus

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Posts
    31

    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???

  2. #2
    scoutt
    Guest
    can you show us some code?

  3. #3
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    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>
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 2001
    Posts
    31
    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.

  5. #5
    scoutt
    Guest
    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
  •  



Click Here to Expand Forum to Full Width