Results 1 to 3 of 3

Thread: validation of Conveyor Belt slideshow script

  1. #1
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default validation of Conveyor Belt slideshow script

    1) Script Title:
    Conveyor Belt slideshow script

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

    3) Describe problem:
    hello guys I need this great script w3c valid, but its like every html tag is invalid

    end tag for element "A" which is not open
    end tag for element "NOBR" which is not open
    end tag for element "SPAN" which is not open
    end tag for element "DIV" which is not open
    and so on..

    so whats wrong? because every tag looks right for me
    for example: leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>'

    there is <nobr> and </nobr> but validator saying "end tag for element "NOBR" which is not open"

    and I cant make the script external like <script src="some.js" type="text/javascript"></script> because Im already using PHP inside that belt slideshow

    so any advice?

    THANK YOU
    Last edited by Snookerman; 06-18-2009 at 11:46 AM.

  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 validator doesn't take it properly into account that it's a script. It sees the opening tags as script code, but the closing tags as HTML code closing tags - go figure.

    If you change the closing tags within the script to, for example (escaping their up slashes with down slashes):

    <\/a>

    instead of:

    </a>

    It will take care of the 'errors' you mention and the script will still work fine.

    Another approach - preferred actually, is to make the script external.
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    wickedd (06-18-2009)

  4. #3
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    OMG its working!! thank you so much you saved my day, sir
    thanks

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
  •