Results 1 to 5 of 5

Thread: need help in magnify script

  1. #1
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default need help in magnify script

    1) Script Title:
    jQuery Image Magnify v1.1
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...agemagnify.htm
    3) Describe problem:
    if i click on a picture dosnt show anything.

    PHP Code:
    <? $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?a...3.jpg&pageid=4

    sry, for my bad english
    Last edited by jscheuer1; 12-14-2009 at 02:31 PM. Reason: foramt code

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You cannot link the images:

    Code:
    <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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    So , wont i ableto use this script? or what does it mean? any solution?
    Last edited by lostsoul; 12-14-2009 at 03:41 PM.

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It means you cannot link the images. You either link them, or you magnify them. You cannot do both.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. The Following User Says Thank You to jscheuer1 For This Useful Post:

    lostsoul (12-14-2009)

  6. #5
    Join Date
    Dec 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    GREAT! It works,thank you

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •