Solved

Java applet and loading faster  Help please

Posted on 2000-04-26
1
268 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
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

772 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

13 Experts available now in Live!

Get 1:1 Help Now