Jump to content

Archived

This topic is now archived and is closed to further replies.

corillo181

a single page

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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..

Share this post


Link to post
Share on other sites
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 relaods

Ray

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.