Web Analytics Made Easy -
StatCounter Multidrop Javascript color of option displayed - CodingForum

Announcement

Collapse
No announcement yet.

Multidrop Javascript color of option displayed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multidrop Javascript color of option displayed



    Help....I need to have color options of the Multidrop Menu javascript that I obtained from this site.

    Headings should be black and options with links blue.

    I have used style="color:blue" in the select tag and it does color everything blue, but now I need to have headings black in the same options. Usually, in a normal select box, I would go to the actual specific option and use style="color:black" but in Javascript, I am unsure as to how to do this task.

    Where do I put a format for a display of an option in this script?

  • #2
    Triple Combo Box

    This was the Triple Combo Box Javascript from this site.

    Comment


    • #3
      Triple Combo Script solution to my problem came from another javascript about Window Opening Popups. Anyway two changes were done to create the link into another window.

      Change one was:
      to change the <select> tag for select3 from onChange="redirect2(this.options.selectedIndex)">

      to:

      onChange="winopen(this.options.selectedIndex)">


      Change two was to replace the function redirect2(x) with below function:


      function winopen(z){
      newwin=window.open("","","scrollbars")
      if (document.all){
      newwin.moveTo(0,0)
      newwin.resizeTo(screen.width,screen.height)
      }
      newwin.location=temp1[z].value
      }

      Comment

      Working...
      X