lmartinLMV
04-23-2010, 04:45 AM
Is there a way to cover part of an SWF with another element like a div with absolute positioning containing an image? I've tried this but the SWF always appear on top.
This is the code:
<div style="position:relative;">
<img src="TVbackground.jpg" alt="sponsored video">
<div style="position:absolute; top:37px; left:56px; z-index:">
<object width="190" height="154" style="background: none repeat scroll 0% 0% black; display: block;" type="application/x-shockwave-flash" data="http://flash.epi3.fesoria.com/recursos_epi/playerNew/viewer.swf">
<param value="http://flash.epi3.fesoria.com/recursos_epi/playerNew/viewer.swf" name="movie">
<param value="url=http://ads.grupozeta.es/2/www.levante-emv.com/videoplayer/1232565891@x90&video=file%3Dvideosamaranchesportistes.flv%26streamer%3Drtmp%3A%2F%2Fflash.epi3.fesor ia.com%2Fvideostream%2Frecursosred%26controlbar%3Dbottom%26resizing%3Dtrue%26autostart%3Dtrue%26allo wfullscreen%3Dtrue%26image%3Dhttp%3A%2F%2Ffotos.fesoria.com%3A12080%2F30429.jpg&auto=si" name="FlashVars">
<param value="high" name="quality">
<param value="true" name="allowfullscreen">
</object>
</div>
<div style="position:absolute; bottom:0px; z-index:10000"><img src="bottom_backgnd.jpg" alt="TV backgnd bottom" /></div>
</div>
What I want to do is that the SWF video appears on a TV set screen, but I want the bottom part of the video to be covered by the bottom frame of the TV set.
This is the code:
<div style="position:relative;">
<img src="TVbackground.jpg" alt="sponsored video">
<div style="position:absolute; top:37px; left:56px; z-index:">
<object width="190" height="154" style="background: none repeat scroll 0% 0% black; display: block;" type="application/x-shockwave-flash" data="http://flash.epi3.fesoria.com/recursos_epi/playerNew/viewer.swf">
<param value="http://flash.epi3.fesoria.com/recursos_epi/playerNew/viewer.swf" name="movie">
<param value="url=http://ads.grupozeta.es/2/www.levante-emv.com/videoplayer/1232565891@x90&video=file%3Dvideosamaranchesportistes.flv%26streamer%3Drtmp%3A%2F%2Fflash.epi3.fesor ia.com%2Fvideostream%2Frecursosred%26controlbar%3Dbottom%26resizing%3Dtrue%26autostart%3Dtrue%26allo wfullscreen%3Dtrue%26image%3Dhttp%3A%2F%2Ffotos.fesoria.com%3A12080%2F30429.jpg&auto=si" name="FlashVars">
<param value="high" name="quality">
<param value="true" name="allowfullscreen">
</object>
</div>
<div style="position:absolute; bottom:0px; z-index:10000"><img src="bottom_backgnd.jpg" alt="TV backgnd bottom" /></div>
</div>
What I want to do is that the SWF video appears on a TV set screen, but I want the bottom part of the video to be covered by the bottom frame of the TV set.