Mon bouton ne marche pas

Synops -  
 chmanu -
Est-ce quelqu'un sait comment déclencher une applet uniquement en cliquant sur un bouton

1 réponse

  1. chmanu
     
    je te file un exemple (plus interressant qu n baratin cafouilleux), en fait la, j utilise deux boutons qui lance chacun un applet different)

    <SCRIPT LANGUAGE="JavaScript">

    <!--
    function jeu (i)
    {
    document.write('<body bgcolor=346111 text=black vlink=yellow link=blue>');
    document.write('<center><FORM NAME="Volley">');
    document.write('<applet code="slime');
    document.write(i);
    document.write('.class" name = "volley" height = 400 width = 700></applet>');
    document.write('<B> <FONT COLOR=CYAN SIZE=2></FONT></B> <P><INPUT TYPE="button" VALUE="Nouvelle Partie" onClick="window.location.reload()">');
    document.write('<br><INPUT TYPE="button" VALUE="retour" onClick="history.back()"></FORM></center>');}
    -->

    </script>

    ....

    <FORM>
    <INPUT TYPE="button" VALUE="1 joueur" onClick="jeu(1)">
    <br><br><br>
    <INPUT TYPE="button" VALUE="2 joueurs" onClick="jeu(2)">
    </FORM>

    voila.

    0