Mam problem z moim pseudo autosurfem.
  1. // tutaj odliczanie od 15 do 0, jeśli zero to odśwież
  2. <script type="text/javascript">
  3.  
  4. var x = 15
  5.  
  6. var y = 1
  7.  
  8. function startClock(){
  9.  
  10. if(x!=='Done'){
  11.  
  12. x = x-y
  13.  
  14. document.frm.clock.value = x
  15.  
  16. setTimeout("startClock()", 1000)
  17.  
  18. }
  19.  
  20. if(x==0){
  21.  
  22. x='Done';
  23.  
  24. document.frm.clock.value = x;
  25.  
  26. location.reload();
  27.  
  28.  
  29.  
  30. }}
  31.  
  32.  
  33.  
  34. //////////////
  35. ////////////// TUTAJ SKRYPT PHP ZMIENIAJĄCY ZAWARTOŚĆ $row[0]
  36. //////////////
  37.  
  38. </head>
  39. <body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" onLoad="startClock()">
  40.  
  41. <form name="frm" method="post">
  42.  
  43. <input type="hidden" name="id" value="<? echo $adse ?>">
  44.  
  45.  
  46. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  47.  
  48.  
  49. <tr>
  50.  
  51. <td class="maintopright" style="border-bottom: 2px solid rgb(51, 51, 51); font-family: Verdana; font-size: 13px;" width="50%">
  52.  
  53.  
  54.  
  55.  
  56. <input name="clock" size="3" readonly="readonly" style="border: medium none ; padding: 0pt; font-size: 25pt; font-family: Verdana; vertical-align: top;" type="text">
  57.  
  58. <!--ikonka obok odliczania ----> <iframe name="success" src="" border="0" framspacing="0" marginheight="0" marginwidth="0" vspace="0" hspace="0" style="vertical-align: top;" frameborder="0" height="40" scrolling="no" width="40"></iframe>
  59.  
  60. </div>
  61.  
  62. </td>
  63.  
  64. <td style="border-bottom: 2px solid rgb(51, 51, 51); font-family: Verdana; font-size: 13px; " align="left" valign="middle" width="50%">
  65.  
  66. <strong>adadad<br>
  67.  
  68. </td>
  69.  
  70. </tr>
  71.  
  72. </tbody>
  73.  
  74. </table>
  75.  
  76.  
  77. <?php
  78. echo '<iframe src="'.$row[0].'" id="1" border="0" framspacing="0" marginheight="0" marginwidth="0" vspace="0" hspace="0" frameborder="0" height="100%" scrolling="yes" width="100%"></iframe>';
  79.  
  80.  
  81. ?>
  82. </html>


Otóż ten iframe na samym dole się nie odświeża tzn. ciągle wyświetla to samo mimo to, że zawartość $row[0] się zmienia.
Jestem pewien, że w tym kawałku JS jest coś źle, ponieważ JS znam bardzo słabo. Jeśli ktoś może to niech mnie naprowadzi na błąd.

Pomoże ktoś? smile.gif