appletÔÚhtmlÖÐÎÞ·¨ÏÔʾ ½â¾ö·½·¨
±ÈÈçappletÎļþÊÇAppletTest.class
1£©
ÔÚAppletTest.javaµÄ´úÂëÖÐ
ʹÓÃĬÈϰü£¬¼´²»ÓÃpackageÓï¾ä
ÔÚhtmlÒ³ÖеĴúÂëÊÇ
<applet code="AppletTest.class" width="400" height="300">
</applet>
AppletTest.classÎļþºÍhtmlÒ³·ÅÔÚÒ»¸öÎļþ¼ÐÖÐ
2)
ÔÚAppletTest.javaµÄ´úÂëÖÐ
package xx.yy;
ÔÚhtmlÒ³ÖеĴúÂëÊÇ
<applet code="xx.yy.AppletTest.class" width="400" height="300">
</applet>
AppletTest.classÎļþ·ÅÔÚxx/yyÎļþ¼ÐÖÐ
htmlÒ³·ÅxxÎļþ¼ÐµÄÉϲãĿ¼ÖÐ
Ïà¹ØÎĵµ£º
<Html>
<Head>
<SCRIPT LANGUAGE="JavaScript">
<!--
//¶¨Òå select ÔÖµ
var oldValue,oldText;
//selectÏÂÀ¿òµÄonkeydownʼþ£¬ÐÞ¸ÄÏÂÀ¿òµÄÖµ
function catch_keydown(sel){
switch(event.keyCode) {
case 13: //ȯ ......
ÏÖÔÚ×ö Code Manager .SWT µÄ¹ý³ÌÖв»¿É±ÜÃâµÄÓöµ½ÁËÐèҪץ´æÍøÒ³ÒÔ¼°ÍøÒ³ÄÚǶµÄһЩ×ÊÔ´µÄÎÊÌâ.
ÏÖÔÚ
MHT Éú³ÉÒѾ²»³ÉÎÊÌâ, µ«ÊÇÈçºÎ̽²âÔ´Îļþ±àÂëÒÔ¼°°Ñ MHT ½âѹËõ(µ¼³ö)Ϊ¿ÉÒÔä¯ÀÀµÄ HTML Îļþ(º¬Í¼Æ¬µÈ)ÊǸö´óÎÊÌâ,
ÒÔ¼°Óû§¿ÉÊÓ»¯±à¼Ò³ÃæºóÖØÐ±£´æÎª MHT µÄÎÊÌâ. Java µÄ MHT ´¦Àí¼¼ÊõĿǰÊÇÓÐÒ»¼ÒÃÀ¹ú¹«Ë¾ÔÚ ......
Document ¶ÔÏó
Document ¶ÔÏó´ú±íÕû¸ö HTML Îĵµ£¬¿ÉÓÃÀ´·ÃÎÊÒ³ÃæÖеÄËùÓÐÔªËØ¡£
Document ¶ÔÏóÊÇ Window ¶ÔÏóµÄÒ»¸ö²¿·Ö£¬¿Éͨ¹ý window.document ÊôÐÔÀ´·ÃÎÊ¡£
ÓÐ¹Ø Document ¶ÔÏóµÄÏêϸÃèÊö¡£
IE: Internet Explorer, F: Firefox, O: Opera, W3C: World Wide Web Consortium (Internet ±ê×¼).
Document ¶ÔÏóµÄ¼¯º ......
1¡¢´ó²¿·ÖWEBÎĵµ²ÉÓÃHTML¸ñʽ¡£
2¡¢±¾ÀýÓÃÈçÏÂHTMLÎĵµ
<html>
<head>
<title>
Laptop power supplies are avaliable in First class only
  ......
ÓÐʱÐèÒª·¢ËÍHTML¸ñʽµÄÓʼþ£¬±ãÓÚÉèÖÃÄÚÈݵÄÑùʽ£¬µ«ÉèÖÃÁËContentType = "text/html"ºóÈç¹ûÓи½¼þ¶Ô·½»áÊÕµ½ÂÒÂ룬½â¾ö·½·¨ÈçÏ£º
ɾ³ý³£¹æÐ´·¨¡¡
MyMail.ContentType = "text/html";
MyMail.Body = ÄÚÈÝ;
¸Ä³ÉÏÂÃæÕâÁ½ÐоͿÉÒÔhtml´úÂëºÍ¸½¼þͬʱ·¢ËÍ
MyMail.Body = ÄÚÈÝ;
MyMail.H ......