Results 1 to 5 of 5

Thread: Parallax Slider - there is no attribute "data-bgimage"

  1. #1
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Parallax Slider - there is no attribute "data-bgimage"

    1) Script Title: Parallax Slider

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

    3) Describe problem: I'm not a validation freak (though I like at least to understand why something is 'invalid' and whether I should care) so can anyone explain how I can get around the error there is no attribute "data-bgimage" I get when I run this Parallax Slider code?

    It is a beautiful slider.

    Thanks.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    It depends what DOCTYPE the web page is being validated against.

    "data-" attributes are HTML5
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ah! XHTML. Is that the problem?

  4. #4
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Yes - if your doctype were for HTML5, the "data-" attributes would pass validation (against HTML5 rules)
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  5. #5
    Join Date
    Oct 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you very much.

Similar Threads

  1. Image Thumbnail Viewer II script - "alt" attribute equivalent
    By julieslv in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-29-2008, 08:33 AM
  2. "Secure" Attribute
    By dvarner in forum JavaScript
    Replies: 2
    Last Post: 03-10-2008, 09:57 PM
  3. Switch Menu - "Missing Secure Attribute"
    By dvarner in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 03-07-2008, 05:27 PM
  4. Can you thumbnail the "src" attribute of an "img" tag?
    By unitedlocalbands in forum Looking for such a script or service
    Replies: 8
    Last Post: 07-25-2007, 04:43 AM
  5. Replies: 11
    Last Post: 10-26-2006, 04:40 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
  •