About Javascript for Menu/Content

Discussion in 'HTML & Website Design' started by wd_2k6, Nov 3, 2008.

  1. #1
    Hi,

    Lets say I use JS for my nav menu or content, is it true that I can do something like:

    <script type="text/javascript">
    function mymenu() {
    etc }
    </script>
    <noscript></ul></li>MyMenu</li>etc..</ul></noscript>

    And Search Engines will get the UnOrdered List menu, or content I put inside the no script tags?
     
    wd_2k6, Nov 3, 2008 IP
  2. garrettheel

    garrettheel Peon

    Messages:
    341
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I highly recommend you don't use only javascript for the entire menu. What I like to do when someone would like javascript for a menu, is to make a menu in html/css using an unordered list and then using javascript for dropdown menus. That way, it still works fine for people without javascript, they just don't get the dropdown.
     
    garrettheel, Nov 3, 2008 IP
  3. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes sorry I was rather unclear in my topic decleration.
    Basically i've got this main headline scroller, the type of thing you see on uk.msn.com where it scrolls through the main headlines. I really like it's effect but I also want the search engines to grab the links from the scroller. So I was thinking:
    <script type="text/javascript">
    function scroller() {
    etc }
    </script>
    <noscript>Headlines for Search Engines to see</noscript>

    Would this work?
     
    wd_2k6, Nov 3, 2008 IP
  4. garrettheel

    garrettheel Peon

    Messages:
    341
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That would work, yeah. But I'd be more inclined to write the links in normally and then just use javascript to make them scroll.
     
    garrettheel, Nov 3, 2008 IP