Jump to content


Inserting a flash document


2 replies to this topic

#1 N-GAGE

    Young Padawan

  • Members
  • Pip
  • 29 posts
  • Gender:Male
  • Location:Madrid / Spain
  • Interests:Web design/development

Posted 12 October 2005 - 01:43 PM

When I insert a .swf file into a html document Dreamweaver generates this code:


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="130" height="54" title="time_date">
<param name="movie" value="project_files/flash_time/time_date.swf" />
<param name="quality" value="high" />
<embed src="project_files/flash_time/time_date.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="130" height="54"></embed>
</object>


So when i want to validate my HTML / XHTML document i get this ->


Result: Failed validation, 8 errors

1. Line 33 column 25: there is no attribute "src".

<embed src="project_files/header.swf" quality="high" pluginspage="

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.



SOMEBODY PLEASE EXPLAIN TO ME ....


THANX :: N-GAGE

#2 Donna

    Retired P2L Queen!

  • P2L Staff
  • PipPipPipPip
  • 12,330 posts
  • Gender:Female
  • Location:B.C Canada

Posted 12 October 2005 - 02:53 PM

Try:

<object class="time_date" type="application/x-shockwave-flash" data="time_date.swf" width="130" height="54">
  <param name="movie" value="project_files/flash_time/time_date.swf"  />
  <param name="quality" value="best" />
  <param name="wmode" value="transparent" />
</object>

If not transparent remove that line.

http://www.alistapar...les/flashsatay/

http://www.w3schools...lash_inhtml.asp

http://blog.deconcept.com/2004/10/14/web-s...tect-and-embed/

And it can be done this page is valid
http://www.sylviapitcherphotos.com/

#3 N-GAGE

    Young Padawan

  • Members
  • Pip
  • 29 posts
  • Gender:Male
  • Location:Madrid / Spain
  • Interests:Web design/development

Posted 12 October 2005 - 03:41 PM

<object type="application/x-shockwave-flash" data="c.swf?path=slideshow_as2.swf" width="382" height="257">
<param name="movie" value="c.swf?path=slideshow_as2.swf" />
<param name="bgcolor" value="#4A5163" />
<img src="images/slideshow/rev-gary-davis.jpg" width="382" height="257" alt="American Blues Musicians" />

</object>


Only CTRL + U in firefox to see the source code from the site you entered last ..


: THANX DONNA : IS WORKING ... really sweet





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users