Page 1 of 1
a single page..
Posted: Thu May 04, 2006 10:23 pm
by corillo181
this is wha ti'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?
Posted: Thu May 04, 2006 10:34 pm
by Todd_Z
Posted: Thu May 04, 2006 11:05 pm
by corillo181
mm if i realy wanted to use other ppl product i wouldn't be asking this kind of questions..
i want to learn for my self.
Posted: Fri May 05, 2006 4:45 am
by JayBird
Moved to Client Side.
Todd_Z gave you a perfectly acceptbale answer. You did not stipulate you wanted to write your own.
Posted: Fri May 05, 2006 5:41 am
by Chris Corbyn
Pimptastic wrote:Moved to Client Side.
Todd_Z gave you a perfectly acceptbale answer. You did not stipulate you wanted to write your own.
And even if you do want to write your own why not look at that code to get you started?
Posted: Fri May 05, 2006 11:47 am
by corillo181
d11wtq wrote:Pimptastic wrote:Moved to Client Side.
Todd_Z gave you a perfectly acceptbale answer. You did not stipulate you wanted to write your own.
And even if you do want to write your own why not look at that code to get you started?
becuase when you "know php " and someone ask for something.. you know they getting stared why not try to give then the easier way to start?
some one knew enuff to tell me that by putting the get method to the page and the <a href> to the picture it would work.. see how easy that was

..thank anyways..
Posted: Fri May 05, 2006 3:47 pm
by s.dot
You could also use DOM to avoid even reloading the page.
Code: Select all
<html>
<head>
<title>mypage</title>
<script type="text/javascript">
function showPic(picName){
document.getElementById('myDiv').innerHTML = '<img src="'+picName+'">';
}
</script>
</head>
<body>
<!-- div layer for showing pictures -->
<div id="myDiv"></div>
<!-- actual pictures -->
<a href="javascript: void(0);"><img src="thumbs/this_picture.jpg" onClick="showPic('this_picture.jpg');" style="cursor: hand;"></a>
</body>
</html>