tailieunhanh - Javascript bible_ Chapter 20

Tham khảo sách 'javascript bible_ chapter 20', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | The Applet Object Java applets let experienced programmers design interactive elements that go way beyond what HTML the document object model and JavaScript can do. Applets occupy their segregated rectangular spaces on the page even if those spaces are each no larger than one pixel square for what I call faceless applets and generally operate only within that rectangle. But JavaScript can interact with the applet because an applet becomes an object an applet object when it finishes loading into the browser. The most complete interaction is possible in Navigator from Version 3 onward although some connectivity is possible in Internet Explorer 3 and up. In This Chapter How to add a Java applet to a Web page Introduction to LiveConnect How to access applet variables and methods No Java Required What I like about this connectivity is you don t have to be a Java programmer to let your JavaScript use the applet s powers. In most cases the applet needs to be constructed in anticipation of being accessed from JavaScript but once the applet has been compiled we scripters can blend it into our pages as we like without having to learn Java. Applet Object Properties Methods Event Handlers name Applet methods None Applet variables 410 Part III JavaScript Object and Language Reference Syntax Creating an applet APPLET CODE AppletURL NAME AppletName HEIGHT PixelCount WIDTH PixelCount CODEBASE classFileDirectory ALT alternateTextDisplay ALIGN alignmentLocation HSPACE marginPixelCount VSPACE marginPixelCount PARAM NAME appletParameterName VALUE parameterValue PARAM NAME appletParameterName VALUE parameterValue APPLET Accessing applet properties or methods method parameters index .property method parameters About this object Starting with Navigator 3 Java applets are treated as scriptable objects. The two-way connection between JavaScript and Java in Navigator browsers is called LiveConnect. This Netscape technology also encompasses .

TỪ KHÓA LIÊN QUAN