corillo181 Posted May 5, 2006 Share Posted May 5, 2006 this is what i'm trying to do..i got a picture gallery..so i want to design a single page for when ppl click on the thumbnail the picture is viewed in the same page.. no matter wich picture they click on i want the picture to be viewed in the same page.. can this be done Quote Link to comment Share on other sites More sharing options...
cunoodle2 Posted May 5, 2006 Share Posted May 5, 2006 If you want something to appear on the same page as the page clicked on without another page opening up that you are going to have to look into using some form of javascript show/hide element. Quote Link to comment Share on other sites More sharing options...
.josh Posted May 5, 2006 Share Posted May 5, 2006 what exactly do you mean by "same page?" you could like, do <img src = "<?php echo $_GET['picname']; ?>">for your main picture display and on each thumbnail make the link be like <a href="samepage.php?picname=picture2.jpg"><img src="thumbnailofpicture2.jpg"></a>this solution would involve the page reloading, but it's the same page. if you want it to update the main picture from the thumbs without the page reloading then as cunoodle2 said, you'll have to look into javascript. Quote Link to comment Share on other sites More sharing options...
corillo181 Posted May 5, 2006 Author Share Posted May 5, 2006 that really answered my question thank you...i guess i gotta learn me some java i seen few result with java and is way cooler than with the get method.. Quote Link to comment Share on other sites More sharing options...
craygo Posted May 5, 2006 Share Posted May 5, 2006 Well you could do it with php, the page can just reload and keep it's layout. So all you really see is a quick flicker while the page relaodsRay Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.