Solved

Java applet and loading faster  Help please

Posted on 2000-04-26
1
270 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
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…

896 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now