I am looking to put in some video and flash in my website. They dont have to be uploaded online as im in the learning process. I am just looking for some video code and also any flash code, so the website is validated in XHTML 1.0 Strict. Any ideas? Thanks
This is what I use when I have to use Flash and want it to validate: <object data="flash.swf" type="application/x-shockwave-flash" width="xxx" height="xxx" ><param name="movie" value="flash.swf" /></object> Code (markup): Works with most browsers.
Try copying the embed codes of youtube and study all parts. The variables after every equal sign are either location, size and other data that can be placed. Find more information about <embed> and <object> through google search engine.
The embed element is not part of the xhtml 1 strict DTD so it will not validate as such. The object element is though, so use that one. What kerosene posted, a few posts above, should be enough. In order now to validate the url of the video, you will need to make sure you encode it for URL usage. that would mainly mean to change the & found in the video url to & take care
Is there any chance you can write me up an example? I am just really confused of this stage of my html learning lol
Doesn't the post by Kerosene (a few posts up) work for you ? in his code you will see the "flash.swf" twice. You need to replace that with the filename of your own flash video ..
sorry mate i meant for the video, it is a .avi file...the flash i got working as its something i created in macromedia flash with. sorry for the confusion
Try using this <object data="bleach.avi" type="application/x-mplayer2" width="500" height="200"><param name="movie" value="bleach.avi" /></object> HTML: although i am not sure if Macs can understand it ... (i think the do..)
nice one mate its working nearly perfect just getting it working perfectly in firefox, for some reason in internet explorer it shows up but the play button when pressing it dont work and nothing plays which is weird.
Seems we stumbled upon one of those things... FF uses one way while IE uses another and they cannot be combined in a single element.. .. took me some time to resolve this .. now at my system the following works, and i hope it will for all.. <!--[if IE]> <!-- this will appear if the browser is IE --> <object width="500" height="200" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" data="dw.avi"> <param name="url" value="dw.avi" /> </object> <![endif]--> <!-- this is the code for the non-IE browsers --> <!-- however if this is IE to avoid showing the player twice we make it invisible by including it in an invisible div --> <!--[if IE]><div style="display:none"><![endif]--> <object type="application/x-mplayer2" width="500" height="200" data="dw.avi"> <param name="url" value="dw.avi" /> </object> <!--[if IE]></div><![endif]--> HTML:
that is fantastic mate, got it working now and is functioning perfectly. Really appreciate the help mate