diedVIPs

html knowhow

Wechselnde Dateien in einem Iframe








Die Suche kann etwas dauern, weil intensiv gesucht wird

Wechselnde Dateien in einem Iframe

So sieht´s aus


Quellcode der PHP-Datei
<html>
<head>

<style type="text/css">Hier nichts</style
</head>

<body >
<script type="text/javascript">
var seite1 = "../index.php"
var seite2 = "../Kontakt.html"
var frame = "framename"
var zeit = 5000 //Millisekunden
var i = 0
function load()
{
window.frames[frame].location.href = (i%2 ? seite1 : seite2)
i++
}
setInterval("load()", zeit)
</script>
<center>
<iframe src ="../Impressum.html" onload="resizeIframe(this)" scrolling="no" frameborder="0" width="80%" height="80px" marginheight="0" marginwidth="0" name="framename" target="_self" ></iframe></center>
<script type="text/javascript">
function resizeIframe(iframe) {
if(iframe) {
iframe.height = '';
iframe.height = iframe.contentWindow.document.body.scrollHeight + 'px';
}
}
</script>
</body>

</html>










Kontakt    Datenschutz    Impressum