943,452 Members | Top Members by Rank

Ad:
Dec 6th, 2004
0

How to insert a Flash movie in html and maintain w3c standards?

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
meena is offline Offline
1 posts
since Dec 2004
Dec 6th, 2004
0

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="clsid27CDB6E-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
Last edited by lovablefool; Dec 6th, 2004 at 9:21 am. Reason: Spelling mistake
Reputation Points: 10
Solved Threads: 0
Newbie Poster
lovablefool is offline Offline
15 posts
since Dec 2004
Dec 6th, 2004
0

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.
Reputation Points: 54
Solved Threads: 20
Master Poster
DaveSW is offline Offline
765 posts
since Jul 2004
Nov 18th, 2009
-1
Re: How to insert a Flash movie in html and maintain w3c standards?
Click to Expand / Collapse  Quote originally posted by meena ...
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
The only "standards compliant" method i have found is to use an iframe:
HTML and CSS Syntax (Toggle Plain Text)
  1. <iframe src="someflash.swf" width="200" height="100" frameborder="0" scrolling="no"></iframe>
It works OK on IE9, Firefox, Opera, Chrome and Safari
Reputation Points: 10
Solved Threads: 0
Newbie Poster
josevelasquez is offline Offline
1 posts
since Nov 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Repeating background image not aligning properly
Next Thread in HTML and CSS Forum Timeline: i need urgent help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC