5/19/2011

How do i make a navigation bar that stays on one page?


Okay i know simple html but i want to know how to make a navigation bar that when you click it, it stays on the page. Anyone know how? Do i need a javascript or something?

Edward
JavaScript would be one way to do it. Create a nav.js file containing document.write statements that create the menu. Then put a link to nav.js in each web page in the place where you want the menu to appear. Only thing is, that's not a good method to use if you're wanting search engine spiders to crawl the site. You'll need to create a sitemap and reference it in the robots.txt file.


Add your own answer in the comments!

Orignal From: How do i make a navigation bar that stays on one page?

No comments:

Post a Comment