Проблем при валидация

emagi

Registered
Валидирах днеска една страничка, нищо особено, но ми дава 40 грешки!Като погледна кода не намирам тези посочени грешки, някой да имам на идея как се оправят.Ето и част от кода:
Код:
................
          <param name="movie" value="toolbar.swf" />
          <param name="quality" value="high" />
          <embed src="toolbar.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="850" height="28"></embed>
................................
и ми дава следното при валидация:
ne 18, Column 21: there is no attribute "src".
<embed src="toolbar.swf" quality="high" pluginspage="http://www.adobe.

✉

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
Line 18, Column 43: there is no attribute "quality".
… <embed src="toolbar.swf" quality="high" pluginspage="http://www.adobe.com

✉

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
.......................
 
Много интересно,като това кода който поставя Flash CS3 в HTML документа!
 
akolevutd каза:
Използвай swfobject. embed не е позволен(валиден) при xHTML Strick
точно това щях да казвам и аз
http://blog.deconcept.com/swfobject/
 
Споко бе, приятел!Нито знаеш в какъв смисъл го казвам, че се впрягаш.Охлади малко страстите!Ти с Flash занимавал ли си се???Знаеш ли ,че като EXPORT-неш флаш заедно с HTML документа, самата програма ти вкарва в документа следния код:
Код:
<script language="javascript">
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0',
			'width', '75',
			'height', '76',
			'src', 'clock59',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'clock59',
			'bgcolor', '#ffffff',
			'name', 'clock59',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'clock59',
			'salign', ''
			); //end AC code
	}
</script>
<noscript>
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="75" height="76" id="clock59" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="clock59.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" />	<embed src="clock59.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="75" height="76" name="clock59" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
</noscript>
Това, че аз се чудя как може този код заедно с JavaScript-a към него да са невалидни!И по-спокойно в отговорите! :arrow:
 
Дизайнерите правят флаша, програмиктите - кода. Какво общо има това дали се занимавам с флаш. Аз ти дадох решението, ти тръгваш да ми обясняваш как го еxport-ва. То и фотошопа export-ва шибан код, но някой използва ли го?
 

Back
Горе