Popup appears with fullsize image when clicking on thumbnail
Posted: Mon Oct 04, 2004 10:50 am
feyd | Please use
This can be found in a document called functions.inc, and i supose that if i take "function show_picture()" and i write a propper function instead of all that, i will be able to create the pop ups. The problem is that i don.t know how to start!
I.m really lost, but any help would be great. I've been searching through the forums but i haven.t found anything yet. Sorry if i didn.t search very well and this kind of post is repeated.
feyd | Please use
Code: Select all
tags when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Hello guys.
This is the first time i post on a php forum.
At the moment i.m trying to set up an image gallery for my site. I downloaded a script and i've customized it to my needs but, as you can see [url=http://www.trozosdetiempo.net/captures2.htm]here[/url], when you click in a category, you get to a thumbnails page, and then, if you click on any of them, a new page appears with the full size image.
The thing is that i would like a pop up with only the full size image to appear when i click on a thumbnail inside the categories.
I.m a real newbie at php, but i think that maybe the key to the problem is here:Code: Select all
/***********************************************************/
/* Shows the picture and the links related to the position */
/* in the slideshow. */
/***********************************************************/
function show_picture()
{
$dir = $_GET["dir"];
$tot = $_GET["tot"];
$img = $_GET["img"];
echo "<div style='text-align: center'>";
echo "<big>\n";
if ($img > 1)
{
echo "<a href='show.php?dir=$dir&tot=$tot&img=".($img - 1)."'><<</a>";
}
echo "  \n";
echo "</big>\n";
echo "<b>".$img."</b> of ".$tot;
echo "  \n";
echo "<big>\n";
if ($img < $tot)
{
echo "<a href='show.php?dir=$dir&tot=$tot&img=".($img + 1)."'>>></a>";
}
echo "</big>\n";
echo "<br><br>\n";
echo "<table border='0' cellspacing='1' cellpadding='0'
bgcolor='#000000' align='center'>\n";
echo "<tr><td>\n";
echo "<a href='thumbs.php?dir=$dir&img=$img'>";
echo "<img src='$dir/".search_file("./$dir", $img)."' border=0
onLoad='resize(this);' name=foto
alt='Click to go to thumbnails page.'>";
echo "</a>";
echo "</td></tr>\n";
echo "</table>\n";
echo "<br><br>\n";
echo "<big>\n";
if ($img > 1)
{
echo "<a href='show.php?dir=$dir&tot=$tot&img=".($img - 1)."'><<</a>";
}
echo "  \n";
if ($img < $tot)
{
echo "<a href='show.php?dir=$dir&tot=$tot&img=".($img + 1)."'>>></a>";
}
echo "</big>\n";
echo "<br><br>\n";
echo "<a href='show.php?dir=$dir&tot=$tot&img=1'>first</a> :: ";
echo "<a href='index.php'>main</a> :: ";
echo "<a href='thumbs.php?dir=$dir&img=$img'>thumbs</a> :: ";
echo "<a href='show.php?dir=$dir&tot=$tot&img=$tot'>last</a>";
echo "</div>";
}I.m really lost, but any help would be great. I've been searching through the forums but i haven.t found anything yet. Sorry if i didn.t search very well and this kind of post is repeated.
feyd | Please use
Code: Select all
tags when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]