header.php
$datje = date('Y-m-d'); if($Player['registered'] == $datje){ ?> <script> // Amazing Frameless Popup Window - Version I // (C) 2000 www.CodeLifter.com // Free for all users, but leave in this header // set the popup window width and height var windowW=250 // wide var windowH=400 // high // set the screen position where the popup should appear var windowX = 250 // from left var windowY = 100 // from top // set the url of the page to show in the popup var urlPop = "tutorial.php" // set the title of the page var title = "Tutorial" // set this to true if the popup should close // upon leaving the launching page; else, false var autoclose = true // ============================ // do not edit below this line // ============================ s = "width="+windowW+",height="+windowH; var beIE = document.all?true:false function openFrameless(){ if (beIE){ NFW = window.open("","popFrameless","fullscreen,"+s) NFW.blur() window.focus() NFW.resizeTo(windowW,windowH) NFW.moveTo(windowX,windowY) var frameString=""+ "<html>"+ "<head>"+ "<title>"+title+"</title>"+ "</head>"+ "<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+ "<frame name='top' src='"+urlPop+"' scrolling=auto>"+ "<frame name='bottom' src='about:blank' scrolling='no'>"+ "</frameset>"+ "</html>" NFW.document.open(); NFW.document.write(frameString) NFW.document.close() } else { NFW=window.open(urlPop,"popFrameless","scrollbars,"+s) NFW.blur() window.focus() NFW.resizeTo(windowW,windowH) NFW.moveTo(windowX,windowY) } NFW.focus() if (autoclose){ window.onunload = function(){NFW.close()} } } openFrameless(); </script> <? }
Tutaj jest kod pliku tutorial.php:
<? ?> <body background="images/table.jpg"> <font color="#FFFFFF"> <script> function nexta(){ <? $_SESSION['tutorial']++; ?> } </script> <? $_SESSION['tutorial'] = 1; } $a = $_SESSION['tutorial']; switch ($a){ case 1: 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>'; break; case 2: break; case 3: break; case 4: break; case 5: break; } ?> <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??