Divs
Started by AnTone Media, Dec 15 2006 06:03 AM
1 reply to this topic
#1
Posted 15 December 2006 - 06:03 AM
I remember when the green layout for the pixel2life site had some table thing on the right side that had a few buttons on top. When you clicked them, it would replace whatever was below it. If you know what I mean, then I ask you... how do you do that?
#2
Posted 15 December 2006 - 01:47 PM
Well, i can't quite remember that area as i usually don't use anything over there, but i'm assuming you're talking about some like how the tutorial nav works.
Basically, it uses JavaScript and AJAX. Give the div an onClick event handler, have it process the AJAX, then do a little DOM modification (most likely using the innerHTML property), and all of the sudden, the content below the buttons changes.
I would recommend http://www.quirksmode.org for more help on this.
Basically, it uses JavaScript and AJAX. Give the div an onClick event handler, have it process the AJAX, then do a little DOM modification (most likely using the innerHTML property), and all of the sudden, the content below the buttons changes.
I would recommend http://www.quirksmode.org for more help on this.
Edited by rc69, 15 December 2006 - 01:48 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
