View Single Post
  #4 (permalink)  
Old Mar 21st, 2008, 17:37
Aso's Avatar
Aso Aso is offline
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,135
Blog Entries: 2
Thanks: 5
Thanked 38 Times in 35 Posts
Re: Dynamic menu, is it possible with only js and dom?

Stick to HTML, CSS, Javascript and the DOM.

You could design all the pages of your site, using HTML and CSS, and then pull in each page using AJAX, so the browser doesn't have to reload. But if the user has Javascript disabled, they can navigate each page seperately.

Another alternative is to have div blocks with each section's content, all in one HTML page. Then use Javascript to hide the blocks when the DOM is ready, and display each one when it is called with a link. Again, if Javascript is disabled, the user can just browse the entire page, scrolling down for each section.
Reply With Quote