xmanmonk 0 Posted April 29, 2012 Report Share Posted April 29, 2012 I have a page with an embedded swf file, and it works great on just about every browser I have. I'm using the embed tag inside the object tag to accommodate both ie and the rest of the gang. However, it won't display on the iPad, I'm guessing because of the strict html5 stance. Is there a way to have this same code support all three? The code I have looks something like this: <object classid=... <param name="Movie" value="file.swf" ... <embed name="Sample" value="file.swf"... /> </embed></object> Any assistance will be greatly appreciated. Thanks! Quote Link to post Share on other sites
Ingolme 1,032 Posted May 1, 2012 Report Share Posted May 1, 2012 <object data="file.swf" type="application/x-shockwave-flash" width="..." height="..."> <param name="movie" value="file.swf"> <!-- If flash is not installed --> <p>You need Adobe Flash Player to view this content</p></object> Quote Link to post Share on other sites
xmanmonk 0 Posted May 1, 2012 Author Report Share Posted May 1, 2012 (edited) Right, thanks. It is good to tell them that flash is needed if it doesn't play. However, I thought the embed tag was needed in certain browsers. This will play in html4 and html5? On an iPad and on an old Chrome browser? Edited May 1, 2012 by xmanmonk Quote Link to post Share on other sites
Ingolme 1,032 Posted May 1, 2012 Report Share Posted May 1, 2012 The <embed> tag is not even valid HTML. The W3C validator would show an error for it. The code I gave you should work on every single browser. Quote Link to post Share on other sites
dsonesuk 921 Posted May 1, 2012 Report Share Posted May 1, 2012 The embed tag has been resurrected for use in html5. Quote Link to post Share on other sites
xmanmonk 0 Posted May 1, 2012 Author Report Share Posted May 1, 2012 Thanks. Will give this a try! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.