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?
a single page..
Moderator: General Moderators
-
corillo181
- Forum Commoner
- Posts: 76
- Joined: Wed Apr 26, 2006 3:02 pm
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
-
corillo181
- Forum Commoner
- Posts: 76
- Joined: Wed Apr 26, 2006 3:02 pm
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?d11wtq wrote:And even if you do want to write your own why not look at that code to get you started?Pimptastic wrote:Moved to Client Side.
Todd_Z gave you a perfectly acceptbale answer. You did not stipulate you wanted to write your own.
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
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>Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.