View Single Post
  #1 (permalink)  
Old 04-10-2008, 03:27 AM
jram23 jram23 is offline
WebProWorld New Member
 
Join Date: Oct 2005
Posts: 2
jram23 RepRank 0
Default Javascript Navigation or CSS navigation?

Hi All,

I really need your suggestions in making my navigation system effective.

I maintain a website with over 1k pages. The website has a drop-down navigation which is in all of the pages. The navigation is created using the CSS( <UL> and <LI> ). The navigation items are updated regularly. So what I did is, I pasted the navigation part into a Javascript called menu.js. So what the Javascript has is document.write('menu items'). Now I just call the menu.js on top of all pages. So whenever changes is needed, I just update the menu.js. So the navigation gets updated in all the pages.

Is this a right way to do. I see many sites having the navigation in HTML itself. But my problem is whenever I make changes to the navigation, I need to upload all the files to my server which is time consuming. And I am little lazy to update the 1k pages

And I am aware that having navigation inside a Javascript won't do good to Google. So is there any other way to have a better navigation system?

Thanks a lot in advance!!!
Reply With Quote