Hi I have placed a flash banner on my site
http://www.flashbanners.org.uk/
with this code (I have placed this code in the html header chunk, not in the CSS file)
<object codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="209" width="900" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param name="_cx" value="15346" /><param name="_cy" value="4498" />
<param name="FlashVars" value="" />
<param name="Movie" value="blar blar blar /MichaelHarringtonDesigns/images/img05.swf" />
<param name="Src" value="blar blar blar /MichaelHarringtonDesigns/images/img05.swf" />
<param name="WMode" value="Transparent" />
<param name="Play" value="-1" />
<param name="Loop" value="-1" />
<param name="Quality" value="High" />
<param name="SAlign" value="" />
<param name="Menu" value="-1" />
<param name="Base" value="" />
<param name="AllowScriptAccess" value="always" />
<param name="Scale" value="ShowAll" />
<param name="DeviceFont" value="0" />
<param name="EmbedMovie" value="0" />
<param name="BGColor" value="" />
<param name="SWRemote" value="" />
<param name="MovieData" value="" />
<param name="SeamlessTabbing" value="1" />
<param name="Profile" value="0" />
<param name="ProfileAddress" value="" />
<param name="ProfilePort" value="0" />
<param name="AllowNetworking" value="all" />
<param name="AllowFullScreen" value="false" />
<embed wmode="transparent" src="blar blar blar /MichaelHarringtonDesigns/images/img05.swf" quality="high" pluginspage="
http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="900" height="209"></object>
It works great but as you can see the swf file needs to be perfectly placed over the background image behind. I first used the
tag to nug the swf file down, needed 6 of them it works but using IE the swf file in the wrong place.
in my css file the code is
#headerbg {
clear: both;
margin: 0 auto;
width: 900px;
height: 209px;
background: url(blar blar blar /MichaelHarringtonDesigns/images/img05.swf) no-repeat left top;
margin: 0 auto;
margin-top: 20px;
}
As you can see margin-top: 20px thats what’s giving me the problem. Does anyone know of a way to incorporate margin-top: 20px into the flash code above, or how i can place the swf file exactly where I want it on the page??