Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Apr 2003
    Location
    Hampshire, United Kingdom
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Bot-friendly menus

    The main way of navigating round my website is by using a javascript menu. There are several big advantages to using this - perhaps the biggest being whenever the content/structure of my site changes, I only need to edit one file (the .js file) rather than every single page. But the biggest disadvantage is that whenever my site is scanned by search engine robots (which apparently don't read .js files), there are no "real" links for them to follow - so only the first page is indexed and much of my content goes unnoticed by search engines.

    Does anyone have a clue as to how I can make my site navigation bot-friendly without compromising on the easy updating and stylish navigation that a javascript menu brings?

    (PS "stylish navigation" means no frames, in my book at least!)
    Waggers
    If at first you do succeed, you've probably missed something.

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Bot-friendly menus

    Assuming that search bots do not execute JavaScript, you could do whatever you might do for visitors who do not trust JavaScript and have it turned off in their browsers. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> Maybe having a "Site Map" or "Links" link that you use JavaScript to hide would be good for this? Then you would only have one file to update. Oh wait, you already do have a Site Map link. Well, I'm not sure what to do then. I thought the bots followed all the links they could find...

  3. #3
    5 Star Lounger
    Join Date
    Apr 2003
    Location
    Hampshire, United Kingdom
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Bot-friendly menus

    No, actually you're right - I've been really thick. Although there are three links to the site map on every page, all three are generated by javascripts (d'oh!). And I've been incredibly lazy - there's not a single <noscript> tag anywhere on my site! I think I've taken too many shortcuts... time to start putting some <noscript> tags in...

    Thanks anyway
    Waggers
    If at first you do succeed, you&#39;ve probably missed something.

Posting Permissions

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