Results 1 to 2 of 2

Thread: Image Thumbnail Viewer II

  1. #1
    Join Date
    Aug 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II

    Old Script: I don't have a link but script has header with Last updated: Feb 5th, 2007
    New Script: http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    I just inherited a website that is having issues with the thumbnail2 viewer in certain IE browsers. I can confirm it's broken in 10. It works in 9 definitely, and it works in 10 with Compatibility mode on. It works fine in Firefox and Chrome.

    After googling I found this post and made the updates:
    http://www.dynamicdrive.com/forums/s...king-with-IE10

    I have created 2 pages, one with all the original syntax: http://www.nathanhans.com/odysseypicold.html , and the new page with new syntax: http://www.nathanhans.com/odysseypic.html

    I also read some other posts and read comments about proper attribution. I realize it's missing in the orginal page, and I promise I will make the necessary changes to any pages I find without the proper attribution, as I have done in the new page.

    Thanks.

    -Nathan Hans

  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

    The second demo (odysseypic.html) is missing jQuery, which is required by the newer version of the script. As a result it doesn't work in any browser. Add the highlighted as shown:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>&quot;Odyssey&quot; Series</title>
    <link rel="stylesheet" href="thumbnailviewer.css" type="text/css" />
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
    <script type="text/javascript" src="thumbnailviewer2new.js">
    /***********************************************
    * 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>
    <style type="text/css">
    <!--
    body {
    	background-color: # . . .
    After adding that it should work fine in IE 10 as well as others.

    The browser cache may need to be cleared and/or the page refreshed to see changes.

    Note: The way the second demo is currently setup, once working the viewer will be activated onmouseover, not click. In fact, if you do click, it will take you directly to the image. This can be overridden such that it won't happen by adding this code after the thumbnail script's external tag:

    Code:
    <script type="text/javascript">
    jQuery(function($){
    	$('a[rel="enlargeimage"]').click(function(e){
    		e.preventDefault();
    	});
    });
    </script>
    Or one can simply add the trigger:click property/value pair to the rel attributes of the trigger links to have them activate on click.
    Last edited by jscheuer1; 08-13-2013 at 03:12 AM. Reason: detail
    - John
    ________________________

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

Similar Threads

  1. Replies: 4
    Last Post: 02-09-2013, 09:55 PM
  2. Image Thumbnail Viewer II - Option for thumbnail?
    By doriggidy in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 06-11-2012, 12:45 AM
  3. Image Thumbnail Viewer II Active Thumbnail on Slideshow? (help please) :)
    By SoulieBaby in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 08-11-2008, 12:41 AM
  4. Image Thumbnail Viewer - unwanted border around thumbnail images
    By solder_on in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 05-23-2007, 11:19 AM
  5. Image Thumbnail Viewer II - thumbnail question
    By sarahmdr in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-17-2006, 10:06 PM

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
  •