PDA

View Full Version : Floating menu not XHTML compatible



abajan
11-29-2004, 11:07 PM
Floating Menu Script
http://www.dynamicdrive.com/dynamicindex1/staticmenu.htm

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

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 :)

cr3ative
11-30-2004, 02:09 PM
Google it. (www.google.com)

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

ddadmin
11-30-2004, 09:17 PM
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:

abajan
12-08-2004, 03:31 AM
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. :)