aviemet
07-27-2007, 10:37 PM
I am building this site with a flash movie using wmode=opaque so that i can still put text over the movie. The weird thing is that it only shows up in IE and not firefox, which I've found that it's usually IE that messes up my code.
This is the site http://www.connortech.com
The only thing that I can think of, which isn't apparent from viewing the source code, is that I've used some php to position the thing properly. I set a cookie to get the screen height and made adjustments so that it would be positioned on the bottom of the screen. here's the code in the <head>:
<?php
if($_COOKIE['sHeight']){
echo "<style type='text/css'> #earth{ position: absolute; top:";
echo $_COOKIE['sHeight'];
echo "px; left: 0; z-index: -1;}</style>";
}else{
echo "<script language='javascript'>window.location='http://www.connortech.com';</script>";
}
?>
and the code in the <body>:
<div id="earth">
<?php
echo "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='";
if ($_COOKIE['sWidth']){
echo $_COOKIE['sWidth'];
}else{
echo "1400";
}
echo "' height='400' align='left'>";
?>
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.connortech.com/images/earth.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="menu" value="false" />
<?php
echo "<embed src='http://www.connortech.com/images/earth.swf' wmode='opaque' quality='high' width='";
if ($_COOKIE['sWidth']){
echo $_COOKIE['sWidth'];
}else{
echo "1400";
}
echo "' height='400' name='earth' align='left' menu='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' allowScriptAccess='sameDomain' />";
?>
</object>
</div>
I've been all over the place but no one seems to have had the same problem as me. I just thought I'd see if anyone could help. I'm at a loss. If I can't get this to work in firefox, I'll probably have to scrap the whole idea.
Thanks,
-Avi
This is the site http://www.connortech.com
The only thing that I can think of, which isn't apparent from viewing the source code, is that I've used some php to position the thing properly. I set a cookie to get the screen height and made adjustments so that it would be positioned on the bottom of the screen. here's the code in the <head>:
<?php
if($_COOKIE['sHeight']){
echo "<style type='text/css'> #earth{ position: absolute; top:";
echo $_COOKIE['sHeight'];
echo "px; left: 0; z-index: -1;}</style>";
}else{
echo "<script language='javascript'>window.location='http://www.connortech.com';</script>";
}
?>
and the code in the <body>:
<div id="earth">
<?php
echo "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='";
if ($_COOKIE['sWidth']){
echo $_COOKIE['sWidth'];
}else{
echo "1400";
}
echo "' height='400' align='left'>";
?>
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.connortech.com/images/earth.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="menu" value="false" />
<?php
echo "<embed src='http://www.connortech.com/images/earth.swf' wmode='opaque' quality='high' width='";
if ($_COOKIE['sWidth']){
echo $_COOKIE['sWidth'];
}else{
echo "1400";
}
echo "' height='400' name='earth' align='left' menu='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' allowScriptAccess='sameDomain' />";
?>
</object>
</div>
I've been all over the place but no one seems to have had the same problem as me. I just thought I'd see if anyone could help. I'm at a loss. If I can't get this to work in firefox, I'll probably have to scrap the whole idea.
Thanks,
-Avi