Sellighsphire: Flash proportional vergrößern im IE

Beitrag lesen

Hi!

Ich hab's selbst hinbekommen :-)

So soll's sein:

function dwidth() {
 width = getWindowWidth();
 hoehe = Math.ceil(width/5);
 percent = Math.round((width/300)*1000)/1000;
  document.getElementById("mittentext").style.fontSize = percent+"em";
  document.getElementById("left").style.width = hoehe+"px";
  document.getElementById("mittentext2").innerHTML = percent+"em | "+hoehe+" | "+width;
  document.getElementById("flashe").width = hoehe+"px";
  document.getElementById("flashe").height = hoehe+"px";
  document.all.flashe.width = hoehe+"px";
  document.all.flashe.height = hoehe+"px";
}
</script>
<body onResize="dwidth()" onLoad="dwidth()">
<table cellpadding="0" width="100%" height="100%" cellspacing="0" border="0"><tr><td valign="middle" >
<table id="innertable" width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
  <tr>
    <td width="20%"><img src="links1.jpg" width="200" id="left"></td>
    <td width="40%"><div id="mittentext" align="center">BLA BLUB</div><div id="mittentext2" align="center">ZEILE 2</div></td>
    <td width="20%" style="display:block"><object><embed src="luettger.swf" id="flashe" quality="high" type="application/x-shockwave-flash" ></embed></object></td>
    <td width="20%">&nbsp;</td>
  </tr>
</table>
</td></tr></table>

Grüße
Jens