S
sevY
Hi,
hier noch eine Frage zu Flashplugin Einbindung.
Wie funktioniert das W3C konform, ohne die Browserkompatibilität einzuschränken?
W3C Validator sprach:
hier noch eine Frage zu Flashplugin Einbindung.
Wie funktioniert das W3C konform, ohne die Browserkompatibilität einzuschränken?
PHP:
<!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>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="expires" content="14" />
<meta name="description" content="x" />
<meta name="keywords" lang="de" content="x" />
<meta name="robots" content="all" />
<meta name="revisit-after" content="14 days" />
<meta name="author" content="x" />
<meta name="publisher" content="x" />
<link rel="stylesheet" type="text/css" href="default.inc.css" />
<link rel="shortcut icon" type="image/ico" href="img/favicon.ico" />
<script language="javascript" type="text/javascript" src="function.inc.js"></script>
<title>x</title>
</head><body>
<div class="main">
<div class="content">
<script language="javascript" type="text/javascript">
if(hasRightVersion)
{
var width='970';
var height='600';
var file='main.swf';
var mainContent='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
+ 'width="'+width+'" height="'+height+'"'
+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
+ '<param name="movie" value="'+file+'" />'
+ '<param name="play" value="true" />'
+ '<param name="loop" value="false" />'
+ '<param name="quality" value="high" />'
+ '<param name="menu" value="false" />'
+ '<embed src="'+file+'"'
+ 'width="'+width+'" height="'+height+'"'
+ 'play="true"'
+ 'loop="false"'
+ 'quality="high"'
+ 'menu="false"'
+ 'type="application/x-shockwave-flash"'
+ 'pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
+ '</embed>'
+ '</object>';
document.write(mainContent);
}
else
{
var alternateContent='<a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_self" title="Get Macromedia Flashplayer"><img src="img/get_flash_player.gif" alt="Get Macromedia Flashplayer"></a>';
document.write(alternateContent);
}
</script>
<noscript>
<img src="img/enable_javascript.gif" alt="Enable JavaScript" />
</noscript>
</div>
</div>
</body>
</html>
W3C Validator sprach:
elow are the results of attempting to parse this document with an SGML parser.
Line 25, column 93: an attribute specification must start with a name or name token
...D27CDB6E-AE6D-11cf-96B8-444553540000"'
Check for stray quotes or incomplete attribute definitions.
?
Line 25, column 93: document type does not allow element "object" here
...D27CDB6E-AE6D-11cf-96B8-444553540000"'
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).
?
Line 33, column 30: there is no attribute "src"
+ '<embed src="'+file+'"'
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.
?
Line 33, column 40: an attribute specification must start with a name or name token
+ '<embed src="'+file+'"'
?
Line 33, column 40: element "embed" undefined
+ '<embed src="'+file+'"'
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).
?
Line 47, column 186: document type does not allow element "a" here
...f" title="Get Macromedia Flashplayer"><img src="img/get_flash_player.gif" alt
?
Line 47, column 259: end tag for "img" omitted, but OMITTAG NO was specified
... alt="Get Macromedia Flashplayer"></a>';
You may have neglected to close a tag, or perhaps you meant to "self-close" a tag; that is, ending it with "/>" instead of ">".
?
Line 47, column 187: start tag was here
..." title="Get Macromedia Flashplayer"><img src="img/get_flash_player.gif" alt=