Java is a trademark of Sun Microsystems, Inc.
|
mButton
How to insert the applet into your HTML
When putting applets into web pages, it's best to use a direct HTML code
editor that allows you to view and edit the HTML directly. Frontpage is not
a good idea. A Windows notepad is better than Frontpage.
Start off by copying and pasting the following into your HTML at the point
where you want the applet to display.
<applet code="mgafree.class" width=400 height=50>
<param name=copyright value="Image Intelligence Ltd. 1999 (www.imint.com)">
</applet >
CODE: must be followed by the filename of the applet you are using. For
example, "mgafree.class" is the name of the free version of the Classic
(Type I) version of the Magic Buttons. If your applet has a different
filename, change the code attribute accordingly. NB: you cannot enter
paths after the CODE attribute; only a filename.
HEIGHT: for the free versions this value must be at least 50. You enter a
pixel value here for the total height of the applet.
WIDTH: for the free versions this value must be at least 280. You enter a
pixel value here for the total width of the applet.
COPYRIGHT: the copyright information must be entered exactly as above
- otherwise the applet won't work.
The rest of the work involves - so far as you need to - inserting a few
more "parameters". Parameters are lines that look like:
<param name="........" value="..............">
Each parameter has a name and a value, which you insert according to
the instructions for an applet. The completed parameter tag is inserted
between the <applet> tags. Some web design programmes have special
dialog boxes for inserting name/value pairs. Even if your design programme
promises to insert these automatically, it is always a good idea to check
your HTML source directly.
Back to the mButton applet page.
|
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.
Copyright 2002 INT Media Group, Incorporated. All Rights Reserved.
Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.
|