pwwilson
02-16-2011, 12:47 AM
I am not a web developer by any means, so be patient with me if I don't get something simple.. But I am working on a new web page for our company and the index page has three objects layered. Layer 1 is a flash file, layer 2 is an image and Layer 3 is another flash. Everything is lined up in Firefox, but layers 1 and 2 are shifted to the right in IE.
Here is how I have them defined.
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF("carousel.swf", "CarouselDiv", "600", "400", "9.0.0", false, flashvars, params, attributes);
</script>
<style type="text/css">
#CarouselDiv { position: relative; z-index: 3; }
</style>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF("leaf.swf", "leafDiv", "600", "400", "9.0.0", true, flashvars, params, attributes);
</script>
<style type="text/css">
#leafDiv { position: absolute; z-index: 1; left: 48px; }
.swfs { position: relative;}
</style>
and
<div class="swfs" align="center">
<div id="CarouselDiv"></div>
<div id="leafDiv"></div>
<div style="position: absolute; z-index: 2; left: 30px; top: 0px">
<img border="0" src="images/frame.gif"></div>
If you want to see it all, you can go to http://www.nuvorainc.com/Newsite/index.html
Thanks
Here is how I have them defined.
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF("carousel.swf", "CarouselDiv", "600", "400", "9.0.0", false, flashvars, params, attributes);
</script>
<style type="text/css">
#CarouselDiv { position: relative; z-index: 3; }
</style>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.scale = "noscale";
params.salign = "tl";
params.wmode = "transparent";
var attributes = {};
swfobject.embedSWF("leaf.swf", "leafDiv", "600", "400", "9.0.0", true, flashvars, params, attributes);
</script>
<style type="text/css">
#leafDiv { position: absolute; z-index: 1; left: 48px; }
.swfs { position: relative;}
</style>
and
<div class="swfs" align="center">
<div id="CarouselDiv"></div>
<div id="leafDiv"></div>
<div style="position: absolute; z-index: 2; left: 30px; top: 0px">
<img border="0" src="images/frame.gif"></div>
If you want to see it all, you can go to http://www.nuvorainc.com/Newsite/index.html
Thanks