Jump to content


Divs


1 reply to this topic

#1 AnTone Media

    Young Padawan

  • Members
  • Pip
  • 66 posts
  • Gender:Male
  • Location:Los Angeles
  • Interests:Knowledge:<br />Photoshop, Image Ready, Dreamweaver, After Effects, Maya, Final Cut Pro, Quark Xpress<br /><br />Barely Know (Want to know more):<br />Flash/Actionscript, Audition, Premiere

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 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

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.

Edited by rc69, 15 December 2006 - 01:48 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users