. | Warning... If you are not sure, that know about Java-applets everything, read please some items important or are simply of the information, useful to you, in which I has tried to answer some frequently set questions and to give a little. The recommendations concerning use in sites design Java-applets. |
To put applet on the page it is very simply: for this purpose it is necessary to copy all necessary class-files and images (if are necessary) in a directory of pages, and in that place, where on page should be applet insert into it code some HTML-lines (edited yours, by plans). Then usual way to send this all on server. | |
Never rename class-files necessary for work applets. The name of a class-file contains also inside it and if it ceases to coincide with the actual name, applet does not work! | |
It is necessary observe the register of marks in the names of class-files in a HTML-code applets. For example, if the class-file refers to as AlexWarp.class, just so it should refer to as in the first line of its HTML-code. If to write code = "Alexwarp.class", this applet to work will not be. | |
Never use in Java-scripts and HTML-code Java-applets lower case the Russian letter "�". It results in immediate lag brouser Netscape. Think out phrases without the letter "�" or use a capital letter. | |
Sometimes in a HTML-code applets the ambassador code = "FileName.class" it is meaningful to add codebase = " http: // your.server.ru / ~ YourURL " to prompt to the computer for the user where to search a necessary class-file. Thus class-files you can hold in any directory and even on the friend servers! | |
By placing once class-file in a directory of the page you receive opportunity to use this applet though on each of pages sites ( or some times on one page) simply inserting in the necessary places HTML-code it applets. And volume of page from it practically not varies, and to look this applet can everywhere differently. | |
If for you the speed of loading or minimal volume of your page is important, do not use applets, containing images. Usually image borrows more places and time, than itself applet! Opposite applets without images are very favourable: they usually borrow much less places, than usual image same the size. | |
Some users for speed of loading of pages disconnect in brousers support Java.
Therefore good form considers an insert in applet of the explanatory
( by a principle " ALT " in images). If applet contains image, insert
before < /APPLET > a usual line < IMG SRC = "filename.gif"> or
< a href = " http: // www.nedernet.nl / ~ rvdb/index.html "><
IMG SRC = "filename.gif"></a>, and if image is not present,
it is possible simply to write a line for example " The support Java " is
necessary. |