runei Posted March 2, 2009 Share Posted March 2, 2009 Hello. Im working on a simple photo gallery for my website. I have created pagination and thumbnails for the gallery, but i also want users to click a image and see it in full size. I briefly looked at a java script but i am not really sure how to proceed. Appreciate any suggestions. runei heres the java script. <a href="javascript:window.open('path......','FullView','top=100,left=100,width=7 00,height=500,resizable=yes,scrollbars=no,location =no,menubar=no,status=no,toolbar=no'); void('');"> <img src="path...."> </a> heres my code: <?php echo "<table cellspacing=\"10\"cellpadding=\"10\">"; $sql = "SELECT * FROM mar_photo"; $res = mysql_query($sql) or die (mysql_error()); //Puts it into an array $pager = new PS_Pagination($con,$sql,15,20); $rs = $pager->paginate(); $i = 0; $max_columns = 6; while($row = mysql_fetch_assoc($rs)) { echo "<td border=\"1\" id=\"form\">"; //Outputs the image and other data echo "<img src=images/thumbs/".$row['photo']." > <br>"; echo "<b>Title :</b> ".$row['name'] . "<br> "; echo "</td>"; if(++$i == $max_columns) { echo "</tr>"; $i=0; } // end if } echo $pager->renderFullNav(); echo "</table>"; Quote Link to comment https://forums.phpfreaks.com/topic/147585-solved-thumbnails-to-fullsize/ Share on other sites More sharing options...
gevans Posted March 2, 2009 Share Posted March 2, 2009 Go to google and type in slimbox Something like that will be very easy to implement and look very good as well. Quote Link to comment https://forums.phpfreaks.com/topic/147585-solved-thumbnails-to-fullsize/#findComment-774777 Share on other sites More sharing options...
Yesideez Posted March 2, 2009 Share Posted March 2, 2009 I think Lightbox is just what you need. http://www.huddletogether.com/projects/lightbox/ No need to understand ow to write Javascript and examples given to sow how to add it. You can also come back here if you get stuck Quote Link to comment https://forums.phpfreaks.com/topic/147585-solved-thumbnails-to-fullsize/#findComment-774780 Share on other sites More sharing options...
premiso Posted March 2, 2009 Share Posted March 2, 2009 While we are on the boxes topic... Google up Shadowbox, that should be what you are looking for! Quote Link to comment https://forums.phpfreaks.com/topic/147585-solved-thumbnails-to-fullsize/#findComment-774783 Share on other sites More sharing options...
runei Posted March 2, 2009 Author Share Posted March 2, 2009 hmm, kind of like the box thing i'll see if i can figure it out Quote Link to comment https://forums.phpfreaks.com/topic/147585-solved-thumbnails-to-fullsize/#findComment-774785 Share on other sites More sharing options...
runei Posted March 2, 2009 Author Share Posted March 2, 2009 them boxes worked great and it looked pro as well. thx people Quote Link to comment https://forums.phpfreaks.com/topic/147585-solved-thumbnails-to-fullsize/#findComment-774827 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.