View Full Version : Javascript and CSS Positioning

23 Feb 2007, 10:59 AM

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");

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;">

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