Results 1 to 7 of 7

Thread: Problem with Thumbnail Enlarge!

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

    Unhappy Problem with Thumbnail Enlarge!

    Just wondered if anyone has a fix for this.

    I am using a version of the :: Image Thumbnail Viewer II. I have a number of images on the right hand side of the webpage and they appear larger in a div when they are clicked on.

    It seems to work fine of my computer. However, when I try it on other computers the image appears briefly in the div but then links to a new page with the picture in it.

    http://www.electronicpets.org/zhu-zh...sters~p20.html

    Any ideas what this could be? Your help would be much appreciated.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    This is what I'm getting, is it not what you want?:
    http://www.screencast.com/users/Nile...1-29a7305cfa68
    Jeremy | jfein.net

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

    Default

    Wow, that was quick. Thank you for your reply.

    What you have filmed is what I am getting as well. I briefly changed it to a mouseover function and have changed it back now so that you click the smaller images to bring up a bigger one.

    Unfortunately on many computers when the small image is clicked it seems to link to a new page with the image on it. (This is not related to the popup box which appears when the large image is clicked)

    Do you know if this is a problem with my code or a conflicting java problem. The computers I've tried have all been IE so I don't really understand what's happening.

    It seems to interpret the code correctly and display the picture but then afterwards it loads the new page.
    Last edited by rfulton13; 12-22-2009 at 07:28 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

    Your page is in violation of Dynamic Drive's usage terms, which, among other things, state that the script credit must appear in the source code of the page(s) using the script. Please reinstate the notice first.


    Please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:

    Warning: Please include a link to the DD script(s) in question in your post. See this thread for the proper posting format when asking a question.


    That said, since it's IE, you might try getting rid of defer="defer":

    Code:
    <script type="text/javascript" src="thumbnailviewer2.js" defer="defer">
    
    /***********************************************
    * Image Thumbnail Viewer II script-  Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
    * This notice must stay intact for legal use
    ***********************************************/
    
    </script>
    from the script tag. This often helps with problems in this script in IE and has no effect on other browsers. Another thing would be to set a return false on the links to prevent their firing before the script initializes, ex:

    Code:
    <a href="images/020_gogohamster_1.jpg" onclick="return false;" rel="enlargeimage::click"
    But it may be another script on the page changing the return value. Try it without any other scripts and see if that fixes it. If so, we will have to find which script is causing it.
    - 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:

    rfulton13 (12-22-2009)

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

    Default

    Script: DD Tab Menu
    http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    Sorry about that, never done posting here before. I made the changes that you suggested but still finding the same problem on my second laptop.

    I've tried removing all other scripts but it seems to bypass the onclick="return false;"
    Last edited by rfulton13; 12-22-2009 at 09:19 PM.

  7. #6
    Join Date
    Dec 2009
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Ha! Fixed it. It seems there is a conflict with McAfee. It didn't like the return false. Once I disabled it on the browser, the images worked again.

    Is there a workaround for this?

  8. #7
    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

    If the script is working, you don't need:

    Code:
    onclick="return false;"
    But if that, or the attached return false that the script makes for onclick activation causes problems with McAfee, then McAfee will break a very, very great number of scripts.
    - John
    ________________________

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

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
  •