|
Applet is one technology invented by Sun Microsystems to embed one java program into web pages. For more information you can visit http://java.sun.com/ to read more. We also provide the some facilities helping you to embed our application into your web pages. The embedding process of 100town.com's scenes is not hard, if only you have some knowledge about html. Basically one applet in one webpage is as the following html code shows: Code 1: <applet code="org.jdesktop.applet.util.JNLPAppletLauncher"This code is supported by most of browsers, for example, IE, Firefox etc. But it has some limitations too – it cannot load an applet which needs more than Sun had developed the plug-in technique as the substitution of applet. But at the same time, for some types of browsers, like Firefox, applet is still using. The key of the plug-in is as the following code shows <object classid="clsid:8AD This part of code will tell the browser to launch the specific plug-in programs. The way of cross-browser supporting is done by JavaScript. You can find more information about it by searching “HtmlConverter” in google.com which is one converter to rewrite your applet code to be cross-browser supporting. It is not hard if you have some knowledge about JavaScript and if you are not missing in the disordered JavaScript codes. The applet code showing in the code 1 part is widely supported so when you using it you do not need to worry about it is rejected by some type of browsers. For some Forum system or blog system which support user using HTML code as a message body, you can even embed the applet into it. Applet has some bad part. When user is visiting a webpage which has an applet embedded in, the loading process might be very slow due to the slowness of network and other factors. Extremely it may make the browser crashed or looked crashed. Here is one solution to improve this. Embedding the applet directly means when the browser reached the applet code it begins to explain it. If explanation of applet consumes too much it will lead to unexpectable consequences. The “onload” function in JavaScript could help to load the applet after the whole page had been loaded. You can visit the page at http://100town.com/web/public/community to see this improvement. Well, If you feel you had understood this article and want to have our application onto your webpages, try our Embed DIY page.
|