• stijky

    (@stijky)


    I have made a custom template that is using the js script thumbnailviewer2 from Dynamic Drive.

    I am using wordpress to upload the images through the post editor (add media), and then copying the image URI to use as a custom field which I then call in the single post template so as to use the thumbnail viewer layout.

    It is working fine in Firefox/ Safari, but IE just won’t display any of the images at all. I have no idea what is going on… I’ve tried moving the div with the script outside of the post loop and it seems to make no difference.

    Is there something I have to add to the code in the body so that IE will recognize the javascript? I found this ( https://lorelle.wordpress.com/2005/09/16/using-javascript-in-wordpress/ ) but I don’t know where I would add the extra javascript tags when the functions are called from inside of another html tag.

    Also wondering how I could use the thumbnailviewer with the nextgen gallery… and if that would solve my problem.

Viewing 1 replies (of 1 total)
  • Thread Starter stijky

    (@stijky)

    My code for the thumbnailviewer II / custom field combo is like this:
    thumbnails area:

    <a href="/wp-content/uploads/<?php get_custom_field ('d2',TRUE); ?>.jpg" rel="enlargeimage::mouseover" rev="loadarea">
    <img src="/wp-content/uploads/<?php get_custom_field ('d2',TRUE); ?>.jpg" alt="<?php get_custom_field ('d2',TRUE); ?>" width="84" border="0"class="thumb"/></a>

    And the loadarea is like this:
    <div id="loadarea"><img src="https://www.laytonhower.com/wp-content/uploads/<?php get_custom_field ('full',TRUE); ?>.jpg" width="auto" border="0"/></div>

    Working fine in everything except IE, and opera 9.3…

    I am using Nathan Rice’s custom fields plugin from https://www.nathanrice.net/blog/an-easy-way-to-get-the-contents-of-a-custom-field/

Viewing 1 replies (of 1 total)
  • The topic ‘IE Problem Using Thumbnailviewer2 js with Custom Fields’ is closed to new replies.