DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   HTML and CSS (http://www.daniweb.com/forums/forum143.html)
-   -   How to insert a Flash movie in html and maintain w3c standards? (http://www.daniweb.com/forums/thread15124.html)

meena Dec 6th, 2004 8:47 am
How to insert a Flash movie in html and maintain w3c standards?
 
The home page is a flash movie for a site i created,when i use the w3c validation tool, it gives errors saying "invalid attribute "embed" ",
"invalid attribute "scr" "; if i take of "embed" it does not work in Netscape. And also when validating shows error for the movie height and width , if i take that off then the movie is not show fully even in IE.
Please help if some one does know ?
thanks,
meena

lovablefool Dec 6th, 2004 9:19 am
Re: How to insert a Flash movie in html and maintain w3c standards?
 
Hi,

You can insert a flash file through <embed src>. But, the w3c validator shows that tag as an invalid one.

:mad: We design professionals take the w3c guidelines as guidelines only. If you follow the w3c standards, you can't build up a really good site. Your creativity is fully stopped. You customer cannot be satisfied.

I recommend, dont follow W3C. But, a flash file works in Netscape, cool. You can use Dreamweaver or Homesite to design/test your pages. As far as height, if you embed the flash file in a layer, it shows different height and width in Netscape.

The code may take this form,,,,

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="32" height="32">
<param name="movie" value="file://test.swf">
<param name="quality" value="high">
<embed src="file://test.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed></object>

:lol: Cheers and Happy Designing

Lovablefool

DaveSW Dec 6th, 2004 11:36 am
Re: How to insert a Flash movie in html and maintain w3c standards?
 
see http://www.alistapart.com/articles/flashsatay/ for some standards-compliant code that does the trick.


All times are GMT -4. The time now is 10:22 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC