View Single Post
  #2 (permalink)  
Old May 8th, 2007, 21:59
JustinStudios's Avatar
JustinStudios JustinStudios is offline
SuperMember

SuperMember
Join Date: Mar 2007
Location: USA
Posts: 404
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Change images on click

If you use PHP it will have to reload the page, and if you use JavaScript it may not depending on how you code it. By the way, Java is a completely different language than JavaScript.

The easiest way to do this is to set up a variable. And default it to 0.
Then check if the variable is = 0 and if so display the first 3 images.

Else Display the others ones.

Only way I personally know to do this in PHP is to use Session Variabls. Just click here for more information on Sessions.
Reply With Quote