PDA

View Full Version : need help in magnify script



lostsoul
12-14-2009, 01:33 PM
1) Script Title:
jQuery Image Magnify v1.1
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex4/imagemagnify.htm
3) Describe problem:
if i click on a picture dosnt show anything.


<? $prodimg=$prodlisting['prod_bimg'];
if (!isset($pageid))
{
echo '<table class="col"><tr><td class="cntlist"><a href="details.php?action=product&prodid='.$prodid.'&imgid='.$prodimg.'" ><img width="85" height="55" src="prodimg/'.$prodimg.'" alt="'.$prod_model.'" /></a></td></tr></table>';
}
else
{
echo '<table class="col"><tr><td class="cntlist"><a href="details.php?action=product&prodid='.$prodid.'&imgid='.$prodimg.'&pageid='.$pageid.'"><img width="85" height="55" src="prodimg/'.$prodimg.'" alt="'.$prod_model.'" /></a></td></tr></table>';
}

$prodgal_query=mysql_query("SELECT prod_gimg,img_id FROM products_gallery WHERE prod_id='$prodid'",$conn);
while($prodgal=mysql_fetch_array($prodgal_query))
{
$prodgimg=$prodgal['prod_gimg'];
$imgid=$prodgal['img_id'];
if (!isset($pageid))
{
echo '<table class="col"><tr><td class="cntlist"><a href="details.php?action=product&prodid='.$prodid.'&imgid='.$prodgimg.'" ><img width="85" height="55" class="magnify" src="prodimg/'.$prodgimg.'" alt="'.$prod_model.'" /></a></td></tr></table>';
}
else
{
echo '<table class="col"><tr><td class="cntlist"><a href="details.php?action=product&prodid='.$prodid.'&imgid='.$prodgimg.'&pageid='.$pageid.'"><img width="85" height="55" class="magnify" src="prodimg/'.$prodgimg.'" alt="'.$prod_model.'" /></a></td></tr></table>';
}

}

the url to try: http://www.fitmobel.sk/details.php?action=product&prodid=54&imgid=galaxy_03.jpg&pageid=4

sry, for my bad english:(

jscheuer1
12-14-2009, 02:52 PM
You cannot link the images:


<a href="details.php?action=product&prodid='.$prodid.'&imgid='.$prodgimg.'&pageid='.$pageid.'">
<img width="85" height="55" class="magnify" src="prodimg/'.$prodgimg.'" alt="'.$prod_model.'" />
</a>

If you do so, they way you have it, the page will change before, during or after the magnify effect.

lostsoul
12-14-2009, 03:30 PM
So , wont i ableto use this script? or what does it mean? any solution?

jscheuer1
12-14-2009, 04:09 PM
It means you cannot link the images. You either link them, or you magnify them. You cannot do both.

lostsoul
12-14-2009, 04:21 PM
GREAT! It works,thank you:D