OVLADANIE JAVY

ID
Nazov / Name:
Popis / Description:
Dlzka / Length:
Testovane pod / Tested under:

 

106
p106.html / p106.zip
Spolupraca JavaScriptu s Javou
1201b
NN 4.04, IE 4.0

UKAZKA / CLICK HERE

Zdrojovy tvar / Source code:

<HTML> <HEAD> <TITLE> JavaScript DESTINATION - P106 </TITLE> <SCRIPT LANGUAGE="JavaScript"> <!-- function setfont() { x = document.form1.font.selectedIndex; font = document.form1.font.options[x].value; x = document.form1.fontsize.selectedIndex; size = document.form1.fontsize.options[x].value; document.applet1.SetFont(font,parseInt(size)); } // --> </SCRIPT> </HEAD> <BODY> <FORM NAME="form1"> <INPUT TYPE="TEXT" NAME="text1"> <INPUT TYPE="BUTTON" VALUE="Zmen text" onClick="document.applet1.SetMessage(document.form1.text1.value);"> <BR> <b>Font:</b> <SELECT NAME="font"> <OPTION VALUE="TimesRoman">Times New Roman <OPTION VALUE="Arial">Arial <OPTION VALUE="Wingdings">WingDings <OPTION VALUE="Courier">Courier New <OPTION VALUE="Terminal">Terminal font </SELECT> <b>Velkost:</b> <SELECT NAME="fontsize"> <OPTION VALUE="10">10 <OPTION VALUE="15">15 <OPTION VALUE="20">20 <OPTION VALUE="25">25 <OPTION VALUE="30">30 <OPTION VALUE="48">48 <OPTION VALUE="60">60 </SELECT> <INPUT TYPE="BUTTON" VALUE="Zmen font" onClick="setfont();"> </FORM> <APPLET CODEBASE="classes" NAME="applet1" CODE="ControlJava2.class" WIDTH=450 HEIGHT=125> </APPLET> </BODY> </HTML>
[ Navrat / BACK ]