Results 1 to 3 of 3

Thread: Combo-Box Viewer

  1. #1
    Join Date
    Jul 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Combo-Box Viewer

    1) Script Title:

    Combo-Box Viewer

    2) Script URL (on DD):

    http://www.dynamicdrive.com/dynamici...omboviewer.htm

    3) Describe problem:

    Can't make the links inside the form text with different than the default colour. Any ideas how to overcome this?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Which form? The combo box or the larger display area? For the text in the combo box (these are not actual links):

    Code:
    <select name="dropmsgoption" size="1" style="color:red;background-color:lightblue;" onChange="expandone()">
        <option selected>What is JavaScript?</option>
        <option>Difference betwen Java and JavaScript</option>
        <option>What is DHTML?</option>
    </select>
    If you mean link text in the larger area, put this in the style section in the head:

    Code:
    .dropcontent a {
    color:red;
    }
    If you have other styles defined for link pseudo classes like :link, :active, :visited, :hover - then you will need to define these pseudo classes for the .dropcontent a selector as well if you want them to be different than the others in IE.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    Thanks, John!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •