Help - Search - Members - Calendar
Full Version: Marquee/Flash Validation Problems
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
LuthienMoss
I use a marquee at my site but when trying to validate it the validator found errors, because of the code. I have no idea how to go further in validating my site . This is the code:
QUOTE
<marquee onmouseover=this.stop() onmouseout=this.start() behavior="scroll" direction="up" scrollamount="2" height="67px">
Content
</marquee>


I also use flash at my site but again, the validator found errors, because of the code I was given from my flash program to put on my site. This is how my code looks like:

CODE
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="195" height="180" id="nav" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="hnav.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#dedede" />
<embed src="nav.swf" quality="high" bgcolor="#dedede" width="195" height="180" name="nav" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>


How should I procceed? unsure.gif
Darin McGrew
The marquee element is non-standard. You can't validate it unless you create a custom DTD. But it's better to just avoid using it.

For Flash, see ALA's Flash Satay: Embedding Flash While Supporting Standards
LuthienMoss
What's a custom DTD? (dtd?) I don'thave a bunch of marquees, so I'd really like to keep this one i have since it's for practical reasons. If I decide to get rid of it, can I use anything else as a replacement?

I'll check out the link. Thank you.
Christian J
QUOTE(LuthienMoss @ Jul 4 2007, 08:18 PM) *

What's a custom DTD? (dtd?)


See http://www.htmlhelp.com/tools/validator/customdtd.html but don't bother with that: marquee effects are highly distracting for the user, compared with that annoyance the validation error is of less importance IMHO.

QUOTE
If I decide to get rid of it, can I use anything else as a replacement?

You can also make them with javascript.



This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.