PDA

View Full Version : Javascript and CSS Positioning



jwalker80
23 Feb 2007, 10:59 AM
Hi,

I am including a flash movie through JS on a page:



<div id="channel6" class="channel">
<script type="text/javascript">
var FO = { movie:"./images/music_videos.swf",width:"180",height:"135",majorversion:"7",build:"0",bgcolor:"#FFFFFF",allowscriptaccess:"always"};
UFO.create(FO, "channel6");
</script>
</div>



I have CSS positioning on the page. The flash movie that is imported through the JS is appearing on top of another div but i want it to appear underneath.

Is there anyway of adding CSS to the script tag or anything similar e.g.


<script style="position:absolute; z-index:1;">
</script>

It doesnt seem to work if i apply it to the outer div