Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Java][HTML]Odświeżanie Iframe
-TheBoy-
post
Post #1





Goście







Trzemu to nie działa?
  1. window.setInterval("reloadIFrame();", 1000);
  2.  
  3. function reloadIFrame() {
  4. document.frames["testowy"].location.reload();
  5. }
  6. <iframe id="czat" width="100%" height="450" src="http://racegame.pl/chat_script.php?chat=1&typ=1" name"testowy" style="border-width: 2px;" onLoad="if(wartosc_przewijania == null) { wartosc_przewijania = 9999; document.getElementById('czat').contentWindow.scrollTo(0, 9999); } if(wartosc_przewijania > 0) { document.getElementById('czat').contentWindow.scrollTo(0, wartosc_przewijania); }">Nie można załadować czatu</iframe>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
-TheBoy-
post
Post #2





Goście







Zrobiłem to innaczej a teraz mam pytanie jak ustawić obok siebie ramki, aby nie była jedna pod drugą.

  1. <script type="text/javascript">
  2. <!--
  3. function starter() {
  4. setTimeout("refresh()",5000);
  5. }
  6. function refresh() {
  7. document.getElementById('chat_zespolu').src="http://racegame.pl/chat_script.php?chat=1&typ=1";
  8. document.getElementById('chat_premium').src="http://racegame.pl/chat_script.php?chat=1&typ=2";
  9. setTimeout("refresh2()",5000);
  10. }
  11. function refresh2() {
  12. document.getElementById('chat_zespolu').src="http://racegame.pl/chat_script.php?chat=1&typ=1";
  13. document.getElementById('chat_premium').src="http://racegame.pl/chat_script.php?chat=1&typ=2";
  14. setTimeout("refresh()",5000);
  15. }
  16. // -->
  17. </head>
  18. <body onload="java script:starter()">
  19. <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>
  20. </body>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 17.09.2025 - 23:39