Dropdown List with href links

Discussion in 'HTML & Website Design' started by bloard, May 6, 2007.

  1. #1
    How do I create a dropdown list where somehow I link to the pages for each option by using href tags? I want search engines to recognize the various pages linked to in the options and to crawl them.

    Thanks
     
    bloard, May 6, 2007 IP
  2. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well eirher using javascript (put it in an external fiel) or CSS would meet your requirements above.
     
    bacanze, May 6, 2007 IP
  3. Mr Blonde

    Mr Blonde Guest

    Messages:
    142
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    if your after a form dropdown you can use this method:
    <select>
    <option value ="link1"><a herf="link1.html">link1</a></option>
    <option value ="link2"><a herf="link2.html">link2</a></option>
    <option value ="link3" selected="selected"><a herf="link3.html">link3</a></option>
    </select>
    Code (markup):
    Or else you could create it in an unordered list and style it in css like bacanze mentioned, there would be many tutorials out there to help
     
    Mr Blonde, May 6, 2007 IP
  4. costin_trifan

    costin_trifan Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you can find full source code following this link : jasp-costin.blogspot.com/2007/04/dropdown-navigation-menu.html

    HTH
     
    costin_trifan, May 7, 2007 IP