xmanmonk Posted April 29, 2012 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! Link to comment Share on other sites More sharing options...
Ingolme Posted May 1, 2012 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> Link to comment Share on other sites More sharing options...
xmanmonk Posted May 1, 2012 Author 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 Link to comment Share on other sites More sharing options...
Ingolme Posted May 1, 2012 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. Link to comment Share on other sites More sharing options...
dsonesuk Posted May 1, 2012 Share Posted May 1, 2012 The embed tag has been resurrected for use in html5. Link to comment Share on other sites More sharing options...
xmanmonk Posted May 1, 2012 Author Share Posted May 1, 2012 Thanks. Will give this a try! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now