mark110384 Posted March 13, 2009 Share Posted March 13, 2009 Hey guys, I'm having a go at validating one of my websites using the W3 validator. The website contains flash and I get the following message from the validator with regard to the Flash there is no attribute "WMODE". I need WMODE to make the Flash movie tranparent. My Flash embed coding is <object type="application/x-shockwave-flash" data="images/banner04.swf" width="800" height="170"> <param name='wmode' value='transparent' > <param name="movie" value="images/banner04.swf" wmode='transparent'> </object> Can anyone help me with this issue? Link to comment https://forums.phpfreaks.com/topic/149229-solved-there-is-no-attribute-wmode/ Share on other sites More sharing options...
haku Posted March 13, 2009 Share Posted March 13, 2009 Use the swfobject javascript replacement technique. You can find it on google (literally - it's hosted by google). It's cross-browser compliant, and it's valid code. Link to comment https://forums.phpfreaks.com/topic/149229-solved-there-is-no-attribute-wmode/#findComment-783709 Share on other sites More sharing options...
mark110384 Posted March 13, 2009 Author Share Posted March 13, 2009 I placed <div id="flashcontent"> This text is replaced by the Flash movie. </div> <script type="text/javascript"> var so = new SWFObject("images/banner04.swf", "mymovie", "800", "170", "6.0", "#336699"); so.addParam("quality", "low"); so.addParam("wmode", "transparent"); so.addParam("salign", "t"); so.write("flashcontent"); </script> Into my body and downloaded the swfobject.js file and added the source refference in the header of the page like so [code] <script type="text/javascript" src="./js/swfobject.js"></script> [/code] But I just get the message in the DIV? Link to comment https://forums.phpfreaks.com/topic/149229-solved-there-is-no-attribute-wmode/#findComment-783739 Share on other sites More sharing options...
mark110384 Posted March 13, 2009 Author Share Posted March 13, 2009 Sweer, got it working I had the wrong swfobject.js file, Doooh, Thanks Haku Link to comment https://forums.phpfreaks.com/topic/149229-solved-there-is-no-attribute-wmode/#findComment-783764 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.