• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Javascript z php

Status
Not open for further replies.

john290

Banned User
Joined
May 22, 2008
Messages
291
Reaction score
0
Location
Podkarpacie, Krosno
Witam

Chce zrobic takie cos
Code:
      <script language="JavaScript">
      function Rysunek(nr)
      {
      if (nr==0) {<czesc kodu php>};
      if (nr==1) {<czesc kodu php>};
      if (nr==2) {<czesc kodu php>};
      if (nr==3) {<czesc kodu php>};
      document.Obrazek.src=Nowy
      }
      </script>
      <IMG SRC="1.jpg" NAME="Obrazek">
      <br>
      <a href="JavaScript:onClick=Rysunek(0)"> Rys 1 </a>
      <a href="JavaScript:onClick=Rysunek(1)"> Rys 2</img> </a>
      <a href="JavaScript:onClick=Rysunek(2)"> Rys 1</img> </a>
      <a href="JavaScript:onClick=Rysunek(3)"> Rys 2</img> </a>
Tylko co mam wstawic zamiast <czesc kodu php>?
 
Mi chodzi o to ze takie coś:
Code:
      if (nr==0) {include (plik.php)};
nie dziala i nie wiem co zrobic zeby dzialalo
 
Juz wiem jak zrobić
Samme pozwalam ci zamknąć
Code:
      if (nr==0) {document.write("<?php echo('test'); ?>");};
 
Status
Not open for further replies.
Back
Top