FrontPage98 and Lake Applets



If the background running on this page bothers you, click  here

Read this entire page first to get the general idea before you start

Hi. If you're using frontpage and wish to install lake applets on your site, this shortcut might be of help to someone. But, about all I can do is make the following suggestions:
Open *frontpage editor* and make a *test* page in your web and use IT for testing purposes, then:
The first thing you have to do is place the *lake.class* file and *image* you plan to use into your *images* folder in the web containing the *test* page. For this example use this image and the lake.class file below. Go grab them here and save them (1) directly into:
*C:\Webshare\Wwwroot\yourweb\images\*. Where C: is your drive letter.
If you cannot save directly into your *images* folder in the web you choose, follow the *import* steps (2) below:

right click and *save image as* or *save picture as*
Lion image

save this lake.class file to the same folder
lake.class


If you saved the *lake.class* file and *lion image* to another folder on your hard drive *other than* directly into your *images* folder like (1) above, then follow these steps to import them:

(2) Minimize this window and go and open *frontpage explorer*, open the *web* you placed your *test* page in, then open your *images* folder, click *file*, click *import*, click *add file*, browse through your folders until you find where you put the *lake.class*, select it, click *open*, click *ok* on the next window. The lake.class should now be in your *images* folder on your web. Do the same to place the *lion image* in your images folder. Once thats done come back to this page to continue.

Ok now, say thats been done one way or the other. You have the *lake.class* and *image* you're going to use in your *images* folder. Now you have to put the applet code on the *test* page where you want the applet. If you wish to have a *border* around your applet use the lower code on this page instead of the following one.

Ok, select and copy this code below using the *copy* command under *Edit* or select the code and hold down Ctrl and hit the letter C. Now go back to *frontpage editor* click *file*, click *open*, find and open your *test* page, set it up so you can place your applet where you want it, click *html*, examine the code and then click your mouse where you want the applet to go, click *edit, click *paste*. Do the same if you prefer to use the border code rather than this one.
=========================================================
<p align="center">
<applet width="390" height="495" code="lake.class" codebase="images">
<param name="image" value="images/lion1.jpg">
sorry. your browser does not support java.
</applet>
</p>


========================================================= Use the code below if you want a border around your image. Set the table width percentage number *(%)* until it just fits around your image; set the *border* number to larger or smaller as you prefer; set the *bordercolor* to the color you want your border to be.
=========================================================
<div align="center"><center>
<table align="center" width="395" border="5" bordercolor="a52a2a">
<tr>
<td>
<applet width="390" height="495" code="lake.class" codebase="images">
<param name="image" value="images/lion1.jpg">
sorry. your browser does not support java.
</applet>
</td>
</tr>
</table>
</center></div>


=========================================================
Now that the code is in your *html*, click *file*, click *save*. Now click *preview*, your applet should be there. In *normal* view you will only see a J with lake.class under it, thats the way it should be.

Once you have done your testing, place the *lake applet code* on any page you wish and delete the *test* page. I'm assuming of course, that you wish to use your own image. Just follow the same steps to place you *own image* into your web (delete the *lion1.jpg, leave the lake.class there*) and change the *image* name in the applet code to the name of your own image. Remember to change the applet *width* to the width of your *own image* and the applet *height* to * twice your image height less approximately 20 points*. e.g., say your image is 400 wide by 250 high; you would change the *applet width* to 400 and the *applet height* to twice 250 which is 500, less 20, which is applet height=480. Just play with the *applet height* until you get it looking right for you. Add or subtract a few points until the gray bar at the bottom is *just* gone.

You can do this with any applet. Just make sure all relevant *class* files and *images* are in your *images* folder and the code for the applet you plan to use is in your *html* on the appropriate page.

If I were you, I'd make sure to use a *test* page in your web where you can mess around with the applets before before placing them on your pages so that you dont accidentally mess anything up ok? Once done, delete all pages and images that you *arent* using from your web. Upload your web as usual.

Let me know if this helps or if you have any suggestions to make this help info better, let me know by following the link below and signing the guestbook:

back




Here's Another Way


I know you can do this if you have frontpage98. I can't recall if the others have this feature or not.
Open your *test* page, click on the page where you want the applet to be, click *insert*, click *advanced*, click *java applet*.
Where it says *Applet Source* type in:     lake.class
Where it says *Applet Base URL* type in:   images
Where it says *Message to browsers etc* type in:    sorry, your browser does not support java
Now click *ADD* and:
Where it says Name type in:    image
Where it says Value, type in your image name..like say your image was *myimage.jpg* you'd type in by:
Value    myimage.jpg
Now down below you should see the width and height boxes:
Width=   type in the actual width of your image
Height=     type in 2 times the image height less about 20 points.
E.G.Say your image is 200 wide by 100 high;
Width= 200
Height would be twice the height of 100, which is 200 less 20 which=180 then:
Height= 180
Click OK.
Make sure you *save* it.
If you are unable to view it in Frontpage Editor. open it in Frontpage Explorer, click html. and make sure there's no *unsaved:///* in the applet codebase. If there is, delete that part, it should only say    codebase="images/"
Click File and Save it again if you have to, to make sure that *unsaved:///* has been removed and, then click Preview..your applet should be there. The code on *your* page should look like the code above on *this page* changed to where the image name is *your* image, the *applet width* is your image width and the *applet height* is twice your image height less approx 20 points.

If I were you, I'd make sure to use a *test* page in your web where you can mess around with the applets before before placing them on your pages so that you dont accidentally mess anything up ok? Once done, delete all pages and images that you *arent* using from your web. Upload your web as usual.

back