Embedding Java Applet into .html file

前端 未结 2 915
闹比i
闹比i 2020-11-27 06:29

I am having trouble embedding my applet into a webpage. I don\'t think I\'m doing it correctly.

* I have my html file in the same directory as my .class fil

2条回答
  •  眼角桃花
    2020-11-27 06:46

    Making applets work across a wide range of browsers is surprisingly hard. The tags weren't properly standardized in the early days, so Internet Explorer and Mozilla went separate directions.

    Sun developed a generic JavaScript to handle all the specific browser quirks, so that you don't have to worry about browser compatibility.

    Add this to your section:

    
    

    And this to section:

    
    

    See Java™ Rich Internet Applications Deployment Advice for a detailed explanation of the script and all the possible options.

提交回复
热议问题