CrazyZeb
March-19th-2005, 02:47 PM
I just wanted to title it like KB, ha.
Can someone please tell me why this works in Firefox but NOT in IE?
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0"
id="ycblogo" width="200" height="350">
<param name="movie" value="flash/ycblogo.swf">
<param name="quality" value="best">
<param name="scale" value="exactfit">
<param name="wmode" value="transparent">
<param name="bgcolor" value="#000000">
<SCRIPT language="JavaScript">
<!--
document.write('<embed name="ycblogo" src="flash/ycblogo.swf"');
document.write('quality="best" scale="exactfit" wmode="transparent" bgcolor="#000000" swLiveConnect="true"');
if (screen.width>=1280)
{
document.write('width="200" height="350"');
}
if (screen.width>=1152 && screen.width<1280)
{
document.write('width="180" height="315"');
}
if (screen.width>=1024 && screen.width<1152)
{
document.write('width="160" height="280"');
}
if (screen.width>=800 && screen.width<1024)
{
document.write('width="125" height="218"');
}
document.write('type="application/x-shockwave-flash"');
document.write('pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
//-->
</SCRIPT>
</object>
The point of the script is to keep the logo the same size regardless of resolution.
Can someone please tell me why this works in Firefox but NOT in IE?
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0"
id="ycblogo" width="200" height="350">
<param name="movie" value="flash/ycblogo.swf">
<param name="quality" value="best">
<param name="scale" value="exactfit">
<param name="wmode" value="transparent">
<param name="bgcolor" value="#000000">
<SCRIPT language="JavaScript">
<!--
document.write('<embed name="ycblogo" src="flash/ycblogo.swf"');
document.write('quality="best" scale="exactfit" wmode="transparent" bgcolor="#000000" swLiveConnect="true"');
if (screen.width>=1280)
{
document.write('width="200" height="350"');
}
if (screen.width>=1152 && screen.width<1280)
{
document.write('width="180" height="315"');
}
if (screen.width>=1024 && screen.width<1152)
{
document.write('width="160" height="280"');
}
if (screen.width>=800 && screen.width<1024)
{
document.write('width="125" height="218"');
}
document.write('type="application/x-shockwave-flash"');
document.write('pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
//-->
</SCRIPT>
</object>
The point of the script is to keep the logo the same size regardless of resolution.