Click to See Complete Forum and Search --> : Navigation


Canadian87
05-02-2007, 12:13 PM
Well I'm working on a technology website, kindof like anandtech, but also with HTML tutorials and stuff, basically everything i want to make a website for in one site.

And I've seen this effect in more than 1 place, but my friend has a site that he has it on but because he uses a program he doesn't know how to code it.

Http://www.animehq.eu

And I just want to figure out if anyone knows how to code something like the onmouse_click buttons that say Naruto and Deathnote, I want a navigation that when they click the top 4 large buttons the smaller horizontal navigation bar changes.

hopefully I explained this all right. Thanks for any help :)

Tweak4
05-03-2007, 12:07 PM
It should be pretty easy to do. In this example, it looks like he has each different content "pane" coded within a div. At any given time, all but one of these divs are coded with a CSS class that makes them not display, while the remaining one uses a class that does show it. Clicking on the buttons at the top appears to merely change the classes so that the one corresponding to the button that was clicked is changed to the visible class and the others are changed to the invisible class.

Canadian87
05-03-2007, 04:17 PM
any example text of the the css that would change stuff like that?

freshair
05-06-2007, 05:34 AM
from your description, it sounds like javascript could really help you out.