Results 1 to 4 of 4

Thread: Floating menu not XHTML compatible

  1. #1
    Join Date
    Nov 2004
    Location
    Barbados, West Indies
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Floating menu not XHTML compatible

    Floating Menu Script
    http://www.dynamicdrive.com/dynamici...staticmenu.htm

    It's really annoying to find such a cool menu, only to later learn that it's not XHTML compatible.

    What on earth is it about the document type declaration that's causing the menu to vanish like that? It works fine when I leave out the DTD but the DTD is required for a page to validate as XHTML. Would putting the script into an external .js file and then putting a reference to it somewhere in the source of the page help to overcome this problem?

    Come on! There must be someone on this board that has a solution. I would really appreciate it.

    Thanks in advance

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Google it.

    That's where I learnt about document types from... it's just that some DHTML isn't strictly "legal" commands/variables as layed out by the committies.

    I think.

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

  3. #3
    Join Date
    Aug 2004
    Posts
    9,889
    Thanks
    3
    Thanked 964 Times in 953 Posts
    Blog Entries
    15

    Default

    Ok, I've modified the script to work with the doctype issue. This is an issue we're very aware of, and are slowly trying to convert all old scripts for it. Recent and new scripts added already addresses this issue, obviously:
    Last edited by ddadmin; 11-30-2004 at 08:22 PM.

  4. #4
    Join Date
    Nov 2004
    Location
    Barbados, West Indies
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, ddadmin! Your modifications to the script helped a whole lot.

    At first I thought that the changes you made weren't going to be enough to enable Strict XHTML validation but fortunately I remembered reading somewhere to wrap script you want ignored by the XML parser in CDATA tags and that did the trick.

    Thanks again.

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
  •