JVMine



The Form used to change levels:

<FORM NAME="cJVM">
	<INPUT type="button" value="New Game" onclick="newJVM()">
  	<SELECT NAME="level">              
	   <OPTION VALUE="0">Beginner
	   <OPTION VALUE="1" SELECTED>Intermediate
	   <OPTION VALUE="2">Expert
	</SELECT>
</FORM>

The JavaScript used to process the form:

<SCRIPT language="JavaScript">
<!--
function newJVM() 
   {
    iM = document.cJVM.level.selectedIndex ;
    
    if (iM == 0) {
		document.JMine.m_col    = 8 ;
		document.JMine.m_ligne  = 8 ;
		document.JMine.m_mine   = 10 ;
    }
    if (iM == 1) {
		document.JMine.m_col    = 16 ;
		document.JMine.m_ligne  = 16 ;
		document.JMine.m_mine   = 40 ;
    }
    if (iM == 2) {
		document.JMine.m_col    = 30 ;
		document.JMine.m_ligne  = 16 ;
		document.JMine.m_mine   = 99 ;
    }

    document.JMine.newGame( ) ;

    return ;
   }
// --></SCRIPT>

The Applet HTML:

<applet code=JVMine.class  width=450 height=300 ID="JMine" NAME="JMine">
	<param name=cabbase 	value="./cab/jvmine.cab">
	<param name=bImg 	value="./img/j">
	<param name=bgcolor	value=12632256>
	<param name=_nbmine 	value=10>
	<param name=_nbcol  	value=8>
	<param name=_nbligne	value=8>
	<param name=fontsize	value=16>
</applet>

The Parameters:

Param nameTypeDescription
bImgtextImage directory
bgcolorintegerrrggbb info (0xFFFFFF)
nbmineintegerNb Mine (def 99)
nbcolintegerNb colone (def 30)
nbligneintegerNb ligne (def 16)
fonttextFont name (Arial)
fontsizeintegerFont size (14)

Back to the JVMine applet page.

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.