Hallo,
ich bin auch mal wieder hier online
Aber diesmal mit einem Problem:
Ich möchte mein Iframe automatisch regeln lassen bei der Höhe.
Was ist mein Fehler?? Hab die Hilfe benutzt, aber es möchte einfach nicht klappen.
http://www.phpforum.de/archiv_20646_Iframe@gre@anpassen_anzeigen.html
Ich möchte für beide iframes eine automatische Höhenregelung!
Code:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de-DE" lang="de-DE">
<head>
<title>Herzlich Willkommen auf Schnäpchenjäger</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="design.css" />
<!-- Automatisch Höhen-Angepasstes Iframe -->
<script type="text/javascript">
<!--
function resize_me(n)
{
d=5;ifObj=document.getElementsByName(n)[0];p=(document.all)?'scroll':'offset';
eval("ifObj.style.width=window.frames[n].document.getElementsByTagName('body')[0]."+p+"Width+"+d);
eval("ifObj.style.height=window.frames[n].document.getElementsByTagName('body')[0]."+p+"Height+"+d);
}
//-->
</script>
<!-- Ende -->
</head>
<body>
<br/>
<p> Hier kommt das Logo und das Menue hin! </p>
<table border="0" width="100%">
<colgroup>
<col width="4*">
<col width="2*">
</colgroup>
<tr>
<td>
<body onload="parent.resize_me('sidebar')">
<iframe src="sidebar.html" style="border:1px #000000 none;" name="sidebar" scrolling="off" frameborder="1" align=aus marginheight="0px" marginwidth="0px" height="" width="250"></iframe></td>
<td><iframe src="inhalt.html" style="border:1px #000000 none;" name="meinIframe" scrolling="off" frameborder="1" align=aus marginheight="0px" marginwidth="0px" width="600"></iframe></td>
</tr>
<!-- usw. andere Zeilen der Tabelle -->
</table>
</body>
</html>