I have a dilemma, I have a classifieds website, and whenever an ad is clicked a php page shows up displaying all details.
Here I want the pictures to display also, but the thing is, I want the user to click on whatever thumbnail and the thumbnail will get resized to its real size. The coding for this is no prob.
The problem is, how should I do it?
I also have a drop shadow function in my php code, which gets called whenever the image is displayed.
So, I can't use javascript because I am creating all tables with PHP and displaying them in the HTML section of the page.
Like this:
<?php $table="alot of information INCLUDING the images"; ?>
<HTML> <?php echo $table;?> </HTML>
I have thought about sending the image-paths to hidden-inputs on the html page, and then use javascript to fetch images whenever user clicks on them. BUT, the images drop_shadow function is still in PHP. Another way might be to create the dropShadow function in javascript also, but I would have to send the image-sizes to hidden inputs as well right? because javascript can't be used to get image width and height?
Any suggestions ?
If you don't understand my Q or need more input, just let me know and I will update the Q!
Thanks