Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [Java][HTML]Odświeżanie Iframe
-TheBoy-
post 11.05.2012, 19:47:37
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
lukesh
post 11.05.2012, 20:26:04
Post #2





Grupa: Zarejestrowani
Postów: 113
Pomógł: 14
Dołączył: 25.08.2006

Ostrzeżenie: (0%)
-----


Tak będzie działać:

  1. document.getElementById('czat').src = document.getElementById('czat').src;


--------------------
Edumemo.pl - Nauka Języków Obcych
Go to the top of the page
+Quote Post
-TheBoy-
post 12.05.2012, 13:09:12
Post #3





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
binprogrammer
post 12.05.2012, 13:37:36
Post #4





Grupa: Zarejestrowani
Postów: 249
Pomógł: 8
Dołączył: 10.08.2011
Skąd: Bełchatów

Ostrzeżenie: (10%)
X----


Spróbuj na divach, np.

  1. <div style="float: left;">JEDNA RAMKA <div><div style="float: right;"> DRUGA RAMKA <div>
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 26.04.2024 - 19:52