Forum Moderators: coopster

Message Too Old, No Replies

How to show the large images when i click on the thumbnails or mouse over on them in

         

ravii

10:34 am on Nov 19, 2008 (gmt 0)

10+ Year Member



Hello,

can any one tell me

How to show the large images when i click on the thumbnails or mouse over on them in dreamweaver CS4

In the Dreamweaver we had an option called "Create a Web Photo Album"
but through this option we can't get the images from the database and show them as i said above

can anyone tell me the tutorials link for it or any suggestion hot to do it

hope you understood my question

thanks in advance

jatar_k

4:00 pm on Nov 19, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



normally I connect the thumbnail name and the full size image name logically, this allows me to code all the necessary links

if you pull your name from a database and then store it in a variable called $imgnum and you use the same number with a t_ prepended to represent the thumb then you could represent the thumbnail with 't_' . $imgnum

I also don't store images in the actual db, I store the names and paths in the db but the images themselves sit in a directory somewhere

none of that may seem to answer your question but we would have a link like so

<?php
echo '<a href="',$imgnum,'.jpg"><img src=t_"',$imgnum,'.jpg"></a>';
?>

I hope that helps a bit

if you are just looking for how to show an image from a db take a look at this
[webmasterworld.com...]