Results 1 to 3 of 3

Thread: Image Thumbnail Viewer II - There is no attribute 'preload'

  1. #1
    Join Date
    Jan 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II - There is no attribute 'preload'

    1) Script Title: Image Thumbnail Viewer II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    3) Describe problem: I'm attempting to validate a page and keep received the following error: there is no attribute "preload". I have written the code as follows -

    Code:
    <a href="images/large/m_thirteen_1.jpg" rel="enlargeimage" rev="targetdiv:right" preload="yes"><img src="images/large/m_thirteen_thumb1.jpg" alt="" width="100" height="75" border="0" /></a>
    The doctype is XHTML 1.0 Transitional.

    Any help with rectifying this would be much appreciated!
    Last edited by jscheuer1; 01-20-2012 at 09:35 AM. Reason: Format

  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

    As indicated by the code of Step 2 on the demo page, the correct syntax for the script would be:

    Code:
    <a href="images/large/m_thirteen_1.jpg" rel="enlargeimage" rev="targetdiv:right,preload:yes"><img src="images/large/m_thirteen_thumb1.jpg" alt="" width="100" height="75" border="0" /></a>
    However, since preload:yes is the default, you can skip it altogether:

    Code:
    <a href="images/large/m_thirteen_1.jpg" rel="enlargeimage" rev="targetdiv:right"><img src="images/large/m_thirteen_thumb1.jpg" alt="" width="100" height="75" border="0" /></a>
    I don't know if that will validate or not to that DOCTYPE, but I think it will. If not, we will probably have to modify the script to use a data-attribute and an HTML 5 DOCTYPE. But give the above a go first.
    Last edited by jscheuer1; 01-20-2012 at 09:47 AM. Reason: realized it's the default
    - John
    ________________________

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

  3. #3
    Join Date
    Jan 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks again John. Leaving out the preload reference validated fine.
    Cheers!

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
  •