Hide/Show Divs - Your Opinion

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Hide/Show Divs - Your Opinion

Post by iknownothing »

Hey All,
Im currently designing a website with a number of mostly text pages. What do you all think about hiding and showing content div's, to show the relevant page. In other words, the whole site is on the one page, but in separate divs, and only the active one is visible. There wont be too many images etc on pages to slow the whole thing down however.

Thanks.
User avatar
JAB Creations
DevNet Resident
Posts: 2341
Joined: Thu Jan 13, 2005 6:44 pm
Location: Sarasota Florida
Contact:

Post by JAB Creations »

Unless your page is reasonably small (like 20-30KB tops with all external files included) I would not recommend the technique unless you combined it with AJAX.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

As long as the page is relatively small and it still works without Javascript enabled, it sounds fine.
Post Reply