index.php
PHP-Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="stylesheet" type="text/css" href="./css/template_css.css";>
<link href="./templates/brabklee3/css/template_css.css" rel="stylesheet" type="text/css" />
<html>
<script type="text/javascript">
function refreshiframe()
{
parent.document.getElementById('frame1').src="./templates/content/index.php?option=com_content&view=section&layout=blog&id=1&Itemid=1"
setTimeout("refreshiframe()",3000);
}
</script>
<head>
<title>brabklee3</title>
</head>
<body class="all" onLoad="refreshiframe();">
<div id="ah"></div>
<div id="bh"></div>
<div id="ch"></div>
<div id="dh"></div>
<div id="eh"></div>
<div id="fh"></div>
<div id="gh"></div>
<div id="hh"></div>
<div id="ih"></div>
<div id="jh"></div>
<div id="grid"></div>
<div id="logo"><jdoc:include type="modules" name="user1" style="xhtml" /></div>
<iframe id="frame1" runat="server" style="position:absolute;top:142px;left:0px;width:1270px;height:495px;border: 0px;">
</iframe>
<div id="footer"><marquee scrollamount="5" gehavior="scroll" loop="infinite"><jdoc:include type="modules" name="footer" style="xhtml" /></marquee></div>
</body>
</html>
index.php (2tes template)
PHP-Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link rel="stylesheet" type="text/css" href="./css/template_css.css";>
<link href="./templates/content/css/template_css.css" rel="stylesheet" type="text/css" />
<html>
<head>
<title>brabklee3</title>
</head>
<body class="all" onLoad="refreshiframe();">
<div id="ah"></div>
<div id="bh"></div>
<div id="infocon">
<jdoc:include type="modules" name="user2" style="xhtml" />
</div>
</body>
</html>
das sind die beiden php dateien die ich aktuell nutze. (mit der änderung das die eine index.php in einem neuen template gemacht habe)
Also das Problem liegt ja an der stelle das:
das es ein iFrame gibt welches aktualiesiert werden kann ohne das die ganze seite aktualisiert werden muss. (das funktioniert)
content soll innerhalb des iFrames ausgegeben werden, da dieser durch ein modul, welches per zufallsverfahren einen beitrag wählt, aktualisiert werden soll.
folglich habe ich bei jeder aktualisierung ein neuen beitrag und der infodisplay funktioniert. (PROBLEM)
vielen dank für die bisherige hilfe.
Lesezeichen