topper


Diva Help Pages
Java






What is Java?
What Can Java Do?
How do I Add a Lake Applet to My Page?
How do I Add a Snow Applet to My Page?
What Else Can Java Do?
How do you add floats to a Page?
How do you make floats go up your Page?
Where Can I Find Java Script and Java Applets?




What is Java?

Java is a language and there are two types of Java. Java Applets and Java Scripting.




Back To top



What Can Java Do?

Java Applets are programs that can add special effects to your page, aid navigational menus, alter images or just spruce up some text and more. Applets require files that you have to upload to your server for them to show up.

Java Script is a scripting language you can add directly to your page coding. There are no files to upload to your server. Javascript allows you to add many extra features, functions and effects to your pages.


Samples of Java Script Drop Down Menus:
Menu 1
Menu 2


Back To top



How do I add a Lake Applet ?

Adding a Lake Applet to your site is very easy. There are only 3 things you need to do.

1) Copy the code Below
2) Change the name and size of the graphic. More below.
3) Upload the Lake.class file, graphic used and the Html file you have the code on.

<CENTER><TABLE BORDER=4 >
<TR>
<TD><APPLET code="Lake" align="absmiddle" WIDTH="150" HEIGHT="380"><PARAM NAME="image" VALUE="scenery34appletpic.jpg"></APPLET></TD> </TR> </TABLE></CENTER>

Here is what you need to know to change the applet for you to use this on your site:
1) The exact WIDTH of the graphic you are using must be put in where I have it in YELLOW
2) The exact HEIGHT (in GREEN) Must be 2x the hight of the original graphic minus 20 pixels. My exact graphic size is 180 Wide and 150 Heigh. So I have the exact width marked in the coding and Double the Height - 20 pixels which is 300 -20=280. That seems to work perfectly but if there is any grey showing....reduce the pixels more
3) Change the name of the graphic to your graphic name (In RED)
4 Get the Lake.class file Lake Class Here ( Right click and save as )

Here is what the Lake Applet looks like

Back To Top



How do I add a Snow Applet ?

Adding a Snow Applet to your site is very easy. There are only 3 things you need to do.

1) Copy the code Below
2) Change the size of the WIDTH and HEIGHT to match your graphic size EXACTLY
size. 3) Upload the snow.class file, graphic used and the Html file you have the code on.

<CENTER><TABLE BORDER=2 > <TR> <TD WIDTH="100%"> <CENTER><P><APPLET code="snow" width=180 height=120><PARAM name=image value=scenery1appletpic.jpg></APPLET></P></CENTER>

Here is what you need to know to change the applet for you to use this on your site:
1) The exact WIDTH and HEIGHT of the graphic you are using must be put in where I have it in YELLOW

2) Change the name of the graphic to your graphic name (In RED)
3) Get the Snow.class file Snow Class Here
( Right click and save as )

Here is what the Snow Applet looks like

Back To Top



What Else Can Java Do?

Java Script and Applets can do anything your imagination thinks of as long as some programmer has thought of it first and made it.
They can be used for drop down menus, floats and thousands of other things.

One important thing to remember is that if you use more than two javas on one page, it can crash the page.

Back To Top



Where Can I Find Java Script and Java Applets?

I have found the following sites very helpful and easy to use when looking for Java Scripts and Java Applets.  Most of the scripts and applets are free to use on Home/Personal pages, but a fee is charged for Business sites.

Java Script Source

Java Scripts by Java Scripts .Net

Dynamic Drive DHTML

Free Java Scripts and Applets

Java Script.com

Java(TM) Boutique


Back To Top








Diva Help Pages


Diva Home Page


Diva Help Site Map



All content © 2002 by Diva of the Net
All right reserved.
All other copyrights belong to their respective holders.

All graphics © 1998 - 2002
Dream Web Designs by Lady Care
All right reserved.
All other copyrights belong to their respective holders.

Lady Care's Logo
This background set was made and copyrighted by Lady Care.
Please do not take any of the set or the graphics.
Thank you for respecting the Copyright Laws.