Hmmm rigth validate for Flash and XHTML 1.0

How do i make a right XHTML script when i use Flash

Look her:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test</title>
</head>

<body>

<script type="text/javascript">
function IE()
{
document.write ("<object
classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=5,0,0,0' width='320' height='180'>");
document.write ("<param name='movie' value='swearing.swf' />");
document.write ("<param name='quality' value='high' />");
document.write ("</object>");
}

function Others()
{
document.write ("<object
classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#version=5,0,0,0' width='320' height='180'>");
document.write ("<param name='movie' value='../swearing.swf' />");
document.write ("<param name='quality' value='high' />");
document.write ("<embed src='swearing.swf' quality='high'
pluginspage='http://www.macromedia.com/go/getflashplayer'
type='application/x-shockwave-flash' width='320' height='180' />");
document.write ("</object>");
}


var browserName=navigator.appName;
var browserVer=parseInt(navigator.appVersion);
if (browserName=="Microsoft Internet Explorer")
{
IE();
}
else
{
Others();
}


</script>
</body>
</html>

when i use your Markup Validation Servicev0.6.7  i get those errors

Below are the results of attempting to parse this document with an SGML
parser.

  1.. Line 13, column 197: document type does not allow element "object"
here

  ...ion=5,0,0,0' width='320' height='180'>");

  The element named above was found in a context where it is not allowed.
This could mean that you have incorrectly nested elements -- such as a
"style" element in the "body" section instead of inside "head" -- or two
elements that overlap (which is not allowed).

  One common cause for this error is the use of XHTML syntax in HTML
documents. Due to HTML's rules of implicitly closed elements, this error can
create cascading effects. For instance, using XHTML's "self-closing" tags
for "meta" and "link" in the "head" section of a HTML document may cause the
parser to infer the end of the "head" section and the beginning of the
"body" section (where "link" and "meta" are not allowed; hence the reported
error).

  ✉

  2.. Line 21, column 197: document type does not allow element "object"
here

  ...ion=5,0,0,0' width='320' height='180'>");

  ✉

  3.. Line 24, column 28: there is no attribute "src"

  document.write ("<embed src='swearing.swf' quality='high'
pluginspage='http://ww

  You have used the attribute named above in your document, but the document
type you are using does not support that attribute for this element. This
error is often caused by incorrect use of the "Strict" document type with a
document that uses frames (e.g. you must use the "Transitional" document
type to get the "target" attribute), or by using vendor proprietary
extensions such as "marginheight" (this is usually fixed by using CSS to
achieve the desired effect instead).

  This error may also result if the element itself is not supported in the
document type you are using, as an undefined element will have no supported
attributes; in this case, see the element-undefined error message for
further information.

  How to fix: check the spelling and case of the element and attribute,
(Remember XHTML is all lower-case) and/or check that they are both allowed
in the chosen document type, and/or use CSS instead of this attribute.

  ✉

  4.. Line 24, column 51: there is no attribute "quality"

  ... ("<embed src='swearing.swf' quality='high'
pluginspage='http://www.macromedi

  ✉

  5.. Line 24, column 70: there is no attribute "pluginspage"

  ...ring.swf' quality='high'
pluginspage='http://www.macromedia.com/go/getflashpl

  ✉

  6.. Line 24, column 121: there is no attribute "type"

  ...cromedia.com/go/getflashplayer' type='application/x-shockwave-flash'
width='3

  ✉

  7.. Line 24, column 159: there is no attribute "width"

  ...application/x-shockwave-flash' width='320' height='180' />");

  ✉

  8.. Line 24, column 172: there is no attribute "height"

  ...-shockwave-flash' width='320' height='180' />");

  ✉

  9.. Line 24, column 179: element "embed" undefined

  ...ave-flash' width='320' height='180' />");

  You have used the element named above in your document, but the document
type you are using does not define an element of that name. This error is
often caused by incorrect use of the "Strict" document type with a document
that uses frames (e.g. you must use the "Frameset" document type to get the
"<frameset>" element), or by using vendor proprietary extensions such as
"<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the
desired effect instead).

thats not giving no mening here...


Tommy Andersen
1188



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 30-07-2004

Received on Friday, 6 August 2004 06:52:24 UTC