embed flash 100% width (plone)
|
|
|
allow embed, wrap in table
|
Quick and dirty method for getting swf flash files into plone site. First, set security settings to allow embed code on your site. Only do this if you know and trust your editors. Otherwise, don't do it. Next, publish your flash project and choose html option so you get the wrapper code for embed. Copy just the embed part, and paste into html view of your page in plone. Note that by default it will create a relative link to the swf and assume it's on the same level. So your swf should be uploaded in the same directory as your page. If not, modify the embed src code to point to the real location of the swf. A handy way to make the flash banner float to 100% of the page width is to just create a quick wrapper table at 100% width around the embed code, and match the background of the table to the background of the swf like so: <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#aa5822"> <tbody> <tr bgcolor="#aa5822"> <td bgcolor="#aa5822"> <embed width="468" height="60" align="middle" src="Untitled-1.swf" quality="high" bgcolor="#ffffff" name="Untitled-1" allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed> </td> </tr> </tbody> </table> |