Zrobiłem to innaczej a teraz mam pytanie jak ustawić obok siebie ramki, aby nie była jedna pod drug±.
<script type="text/javascript"> <!--
function starter() {
setTimeout("refresh()",5000);
}
function refresh() {
document.getElementById('chat_zespolu').src="http://racegame.pl/chat_script.php?chat=1&typ=1";
document.getElementById('chat_premium').src="http://racegame.pl/chat_script.php?chat=1&typ=2";
setTimeout("refresh2()",5000);
}
function refresh2() {
document.getElementById('chat_zespolu').src="http://racegame.pl/chat_script.php?chat=1&typ=1";
document.getElementById('chat_premium').src="http://racegame.pl/chat_script.php?chat=1&typ=2";
setTimeout("refresh()",5000);
}
// -->
<body onload="java script:starter()"> <div><iframe width="50%" height="170" src="http://racegame.pl/chat_script.php?chat=1&typ=1" style="border-width: 2px;" id="chat_zespolu"></iframe><iframe width="50%" height="170" src="http://racegame.pl/chat_script.php?chat=1&typ=2" style="border-width: 2px;" id="chat_premium"></iframe></div>