Witajcie. Zrobilem okienko popup i chce zeby byl w nim przycisk dalej po kliknienciu ktorego ma sie zwiekszyc wartosc sessji o jeden. Tak wyglada kod okna:

header.php
  1. $datje = date('Y-m-d');
  2.  
  3. if($Player['registered'] == $datje){
  4. ?>
  5. <script>
  6.  
  7. // Amazing Frameless Popup Window - Version I
  8. // (C) 2000 www.CodeLifter.com
  9. // Free for all users, but leave in this header
  10.  
  11. // set the popup window width and height
  12.  
  13. var windowW=250 // wide
  14. var windowH=400 // high
  15.  
  16. // set the screen position where the popup should appear
  17.  
  18. var windowX = 250 // from left
  19. var windowY = 100 // from top
  20.  
  21. // set the url of the page to show in the popup
  22.  
  23. var urlPop = "tutorial.php"
  24.  
  25. // set the title of the page
  26.  
  27. var title = "Tutorial"
  28.  
  29. // set this to true if the popup should close
  30. // upon leaving the launching page; else, false
  31.  
  32. var autoclose = true
  33.  
  34. // ============================
  35. // do not edit below this line
  36. // ============================
  37.  
  38. s = "width="+windowW+",height="+windowH;
  39. var beIE = document.all?true:false
  40.  
  41. function openFrameless(){
  42. if (beIE){
  43. NFW = window.open("","popFrameless","fullscreen,"+s)  
  44. NFW.blur()
  45. window.focus()  
  46. NFW.resizeTo(windowW,windowH)
  47. NFW.moveTo(windowX,windowY)
  48. var frameString=""+
  49. "<html>"+
  50. "<head>"+
  51. "<title>"+title+"</title>"+
  52. "</head>"+
  53. "<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
  54. "<frame name='top' src='"+urlPop+"' scrolling=auto>"+
  55. "<frame name='bottom' src='about:blank' scrolling='no'>"+
  56. "</frameset>"+
  57. "</html>"
  58. NFW.document.open();
  59. NFW.document.write(frameString)
  60. NFW.document.close()
  61. } else {
  62. NFW=window.open(urlPop,"popFrameless","scrollbars,"+s)
  63. NFW.blur()
  64. window.focus() 
  65. NFW.resizeTo(windowW,windowH)
  66. NFW.moveTo(windowX,windowY)
  67. }  
  68. NFW.focus()  
  69. if (autoclose){
  70. window.onunload = function(){NFW.close()}
  71. }
  72. }
  73. openFrameless();
  74. </script>
  75. <?
  76. }


Tutaj jest kod pliku tutorial.php:
  1. <?
  2. ?>
  3. <body background="images/table.jpg"> 
  4. <font color="#FFFFFF">
  5. <script>
  6. function nexta(){
  7. <?
  8. $_SESSION['tutorial']++;
  9. ?>
  10. }
  11.  </script>
  12. <? 
  13.  
  14. if(!isset($_SESSION['tutorial'])){
  15. $_SESSION['tutorial'] = 1;
  16. }
  17. $a = $_SESSION['tutorial'];
  18. echo 'TUTORIAL #'.$a.'/10<br><hr>';
  19. switch ($a){
  20. case 1:
  21. echo 'Witaj nowy graczu!<br>Ten poradnik został przygotowany specjalnie dla Ciebie, abyś mógł zapoznać się z grą i poruszaniem się po wirtualnej galaktyce. Jeżeli uważasz, że sam dasz sobie rade możesz wyłączyć poradnik w zakładce <u><b>PROFIL</b></u> dostępnej na dole menu po lewej stronie. Kliknij <u><b>dalej</b></u> aby kontynuować<br><a href="java script:nexta()"><div style="color:#00FF00;">Dalej >></div></a>';
  22. break;
  23. case 2:
  24. echo 'Tost';
  25. break;
  26. case 3:
  27.  
  28. break;
  29. case 4:
  30.  
  31. break;
  32. case 5:
  33.  
  34. break;
  35. }
  36. ?>
  37.  
  38. <br> </font>


Wszystko dziala, okno sie otwiera, tylko po kliknieciu na dalej>> nic sie nie dzieje. Czy z funkcja nexta() jest cos nie tak czy zrobilem blad gdzie indziej??