Results 1 to 4 of 4

Thread: Error when running Thumbnailviewer2.js File

  1. #1
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Error when running Thumbnailviewer2.js File

    Hi,
    could someone assist, I am trying to run Thumbnailviewer2.js file, but am getting the following error;
    Line:6
    Char:1
    Error: 'document'is undefined
    Code:800A1391
    Source:Microsoft Jscript runtime error

    what is that I need to do run the file without this error coming up; am using the following script, which requiers this file in order to function properly
    http://www.dynamicdrive.com/dynamici...thumbnail2.htm
    <a href="http://www.nasa.gov/images/content/167040main_image_feature_738_ys_4.jpg" rel="enlargeimage::mouseover" rev="loadarea::http://www.dynamicdrive.com" title="This is an example">Thumbnail Example 1</a><br />
    <a href="http://www.nasa.gov/images/content/168177main_image_feature_749_ys_4.jpg" rel="enlargeimage::mouseover" rev="loadarea">Thumbnail Example 2</a><br />

    <a href="http://www.nasa.gov/images/content/166615main_image_feature_733_ys_4.jpg" rel="enlargeimage::click" rev="loadarea2">Thumbnail Example 3 (click)</a><br />
    <a href="http://www.nasa.gov/images/content/168291main_image_feature_750_ys_4.jpg" rel="enlargeimage::click" rev="loadarea2">Thumbnail Example 4 (click)</a><br /><br />

    <div id="loadarea" style="width: 600px"></div>

    <h2 />

    <div id="loadarea2" style="width: 550px"></div>

    thanks
    Senman25
    Last edited by Senman25; 01-27-2008 at 03:15 PM.

  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

    My first impression would be to say - don't run it, install the script as instructed on the demo page and let the browser run it as a part of the page.

    But I cannot be sure this is the situation, it only appears to be the most likely case, given your post. If I have misunderstood the situation:

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John for the reply, please bear with me am not a developer and I seem not to get it right. Having followed the demo instruction, and put the mouse over the pic, it still doesnt work.

    How do I link the .js file to the page

  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

    Follow Step 1 from the demo page and put the script file in the same folder as your page.
    - 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
  •