Solved

Java applet and loading faster  Help please

Posted on 2000-04-26
1
273 Views
Last Modified: 2009-07-29
First of all hello. Second of all I am new to the java language and need a litle help. I am using microsoft frontpage and used the hover button feature to make a java applet. got it like i want it and I have like another 18 of them that are just like it. i takes for ever for the applets to load. is there any way that i can change the code up to get it to load faster. Like call the class once and/or the jpgs once also. Any help will be appreciated. part of my code follows.



<p align="left" style="line-height: 100%">
<span style="position: absolute; left: 12; top: 148">
<applet code="fphover.class" codebase="./" width="212" height="24">
  <param name="hovercolor" value="#0000FF">
  <param name="color" value="#2124CE">
  <param name="textcolor" value="#FFFF00">
  <param name="image" valuetype="ref" value="button1.jpg">
  <param name="hoverimage" valuetype="ref" value="button2.jpg">
  <param name="font" value="Helvetica">
  <param name="fontstyle" value="bold">
  <param name="fontsize" value="14">
  <param name="target" value="main">
  <param name="text" value="General Information">
  <param name="url" valuetype="ref" value="general.htm">
 </applet>
</span>

<p align="left" style="line-height: 100%">
<span style="position: absolute; left: 12; top: 172">
<applet code="fphover.class" codebase="./" width="212" height="24">
  <param name="hovercolor" value="#0000FF">
  <param name="color" value="#2124CE">
  <param name="textcolor" value="#FFFF00">
  <param name="effect" value="glow">
  <param name="image" valuetype="ref" value="button1.jpg">
  <param name="hoverimage" valuetype="ref" value="button2.jpg">
  <param name="font" value="Helvetica">
  <param name="fontstyle" value="bold">
  <param name="fontsize" value="14">
  <param name="text" value="Elementary Schools">
  <param name="url" valuetype="ref" value="elem/elemzones.html">
  <param name="target" value="main">
</applet>
</span>
</p>

<p align="left" style="line-height: 100%">
<span style="position: absolute; left: 12; top: 196">
<applet code="fphover.class" codebase="./" width="212" height="24">
  <param name="hovercolor" value="#0000FF">
  <param name="color" value="#2124CE">
  <param name="textcolor" value="#FFFF00">
  <param name="effect" value="glow">
  <param name="image" valuetype="ref" value="button1.jpg">
  <param name="hoverimage" valuetype="ref" value="button2.jpg">
  <param name="font" value="Helvetica">
  <param name="fontstyle" value="bold">
  <param name="fontsize" value="14">
  <param name="text" value="Junior Schools">
  <param name="url" valuetype="ref" value="jrhigh/juniorzones.html">
  <param name="target" value="main"></applet>
</span>
</p>
 

etc, etc, etc!
Thanks,
Matt
teners69@aol.com
0
Comment
Question by:teners69
1 Comment
 
LVL 1

Accepted Solution

by:
yatest5 earned 75 total points
ID: 2758702
Applets are notoriously slow so using so many is not really advisable.  It's better to use something like JavaScript for simple effects on the screen although I haven't used this particular object so I don't know what it does.

Applets are kept in the IE and NN cache so your page should load substantially faster after the first time.

Cheers,

Tom
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question