★ wanayoo — archive 1999 http://java.webdeveloper.com/jvojava/config.htmlNouvelle recherche | Portail wanayoo
Computer Digital Expo


Find a Web Host With:
CGI Access
DB Support
NT Servers
UNIX Servers
Telnet Access

advanced search
Internet News
Internet Investing
IT
Windows Technology
Linux/Open Source
Developer
Interactive Marketing
xSP Resources
Small Business
Wireless Internet
Downloads
Internet Resources
Internet Lists
International
EarthWeb
Career Resources

Search internet.com
Advertise
Corporate Info
Newsletters
E-mail Offers
Be a Commerce Partner
IT Training
Build an Online Store
Internet Jobs
Business Search
Audio Conferencing
Web Hosting
Track Defects Online
Reach IT Professionals
Breathing Problems?
Find a Web Host
FlashKit
Gif.com
HierMenusCentral
JavaBoutique
JavaScript.com
JavaScriptSource
WebDev Jobs
JustSMIL
ScriptSearch
StreamingMediaWorld
Web Hosts
WebDevelopersJournal WDVL
WebDeveloper.com
WebReference.com
XMLFiles.com
CGI
HTML
Java
JavaScript
Web Design and Promotion
Web Site Development
E-mail Address:


Can you receive
HTML e-mail?

Yes   No

Zip Code:


jvojava


Getting started

To use the Jvo Menu System on your site you should put jms.cab, jms.jar and the images you want to use on your server. That'll make it work with netscape 4+ and MSIE 3+. If you also want it to be viewable in netscape 3 you should unzip jms.jar and put all class files in it on your server too.

To make a popup menu you should create something like this:
<APPLET code="JMSPopupMenu.class" archive="jms.jar" width=80 height=400>
<PARAM name="cabbase" value="jms.cab">
</APPLET>

To add a image flipper you should create something like this:
<APPLET code="JMSImage.class" archive="jms.jar" width=80 height=80>
<PARAM name="cabbase" value="jms.cab">
</APPLET>

This will point netscape to the jms.jar file and MSIE to the jms.cab file. Of course you should enter your own values for the width and the height of the applets.

A simple menu

This is the html code for the applet below:
<APPLET code="JMSPopupMenu.class" archive="jms.jar" width=240 height=40>
<PARAM name="cabbase" value="jms.cab">
<PARAM name="menu0" value="2,1,FFFFFF,menu1.gif">
<PARAM name="names0" value="Previous,Next">
<PARAM name="links0" value="jmstutorial1.html,jmstutorial3.html">
<PARAM name="target" value="tutorial">
</APPLET>

This is the image menu1.gif:
menu1.gif

You can create menus in the PopupMenu applet by using the 'menu' parameter followed by a number. The 'menu0' parameter always is the bottom menu. In the 'menu' parameter you should enter a couple of things seperated by commas. The first two numbers are the number of horizontal and the number of vertical items in the menu. Here the menu is 2 wide and just 1 item high. Next is a hexcolor code for the color of the rectangle to go over the items. Next comes the image to use for the menu and there's also a fifth optional parameter to create transparent menus. More about this later on. You can use the 'names' parameter to add names to the items in the menu. The links are done with the 'links' parameter. There's also a general 'target' parameter to define the target frame.

A more complex menu

This is the html code for the applet below:
<APPLET code="JMSPopupMenu.class" archive="jms.jar" width=320 height=80>
<PARAM name="cabbase" value="jms.cab">
<PARAM name="menu0" value="2,1,FFFFFF,menu2.gif">
<PARAM name="cell0" value="40,20,120,40">
<PARAM name="names0" value="Previous,Next">
<PARAM name="links0" value="jmstutorial2.html,jmstutorial4.html">
<PARAM name="target" value="tutorial">
</APPLET>

This is the image menu2.gif:
menu2.gif

You can also create insets in the menu. This results in a part of the menu which doesn't have any items in it. It's done by using the 'cell' parameter that belongs to the menu you want to change. The first two numbers define the horizontal and vertical inset from the start of the image. The next two numbers define the horizontal and vertical size of a single cell.

This is illustrated by this image:
menu2 explanation

Creating Popups

This is the html code for the applet below:
<APPLET code="JMSPopupMenu.class" archive="jms.jar" width=320 height=80>
<PARAM name="cabbase" value="jms.cab">
<PARAM name="menu0" value="2,1,FFFFFF,menu3.gif">
<PARAM name="cell0" value="40,20,120,40">
<PARAM name="names0" value="Popup 1,Popup 2">
<PARAM name="links0" value="menu1,menu2">
<PARAM name="menu1" value="1,2,003F7F,popup1.gif,popupalpha.gif">
<PARAM name="cell1" value="5,5,70,25">
<PARAM name="names1" value="Previous,Next">
<PARAM name="links1" value="jmstutorial3.html,jmstutorial5.html">
<PARAM name="menu2" value="1,2,003F7F,popup2.gif,popupalpha.gif">
<PARAM name="cell2" value="5,5,70,25">
<PARAM name="names2" value="Previous,Next">
<PARAM name="links2" value="jmstutorial3.html,jmstutorial5.html">
<PARAM name="target" value="tutorial">
</APPLET>

This is the image menu3.gif:
menu3.gif

This is the image popup1.gif:
popup1.gif

This is the image popup2.gif:
popup2.gif

This is the image popupalpha.gif:
popupalpha.gif

Here multiple menus are used to create popups. Just change the links to 'menu' followed by a number to create a "link" to a popup menu. This time the fifth part of the 'menu' parameter is used on menu 1 and 2 to create transparent menus. This last part consist of a second image to be used in the menu. This image defines the transparency of the menu. Fully white means completely visable and black means fully invisable. The images that are used here create a dropshadow effect.

Using image flippers

This is the html code for the left applet below:
<APPLET code="JMSImage.class" archive="jms.jar" width=60 height=60>
<PARAM name="cabbase" value="jms.cab">
<PARAM name="name" value="left">
<PARAM name="image0" value="imageflipdot.gif">
<PARAM name="image1" value="imageflipright.gif">
<PARAM name="event0" value="right.mouse enter,1">
</APPLET>

This is the html code for the right applet below:
<APPLET code="JMSImage.class" archive="jms.jar" width=60 height=60>
<PARAM name="cabbase" value="jms.cab">
<PARAM name="name" value="right">
<PARAM name="image0" value="imageflipdot.gif">
<PARAM name="image1" value="imageflipleft.gif">
<PARAM name="event0" value="left.mouse enter,1">
</APPLET>

This is the image imageflipdot.gif:
imageflipdot.gif

This is the image imageflipright.gif:
imageflipright.gif

This is the image imageflipleft.gif:
imageflipleft.gif

Here two instances of the JMSImage are used. The 'image' parameters are used to load up to 100 images in the applet. 'image0' is always used as the default image. Here the default image is imageflipdot.gif. Next the 'event' parameters can be used to enter up to 100 events, followed by the target image seperated with a comma. A JMSImage produces the events 'mouse enter' and 'mouse exit'. By using the 'name' parameter you can give an applet a name. This allows to catch events from this applet with other applets. The "right.mouse enter,1" in the first applet does the following. Whenever the event 'mouse enter' occurs in the applet named 'right' image number 1, which is imageflipright.gif in this case, will be displayed.

Combining the applets

This is the html code for the left applet below:
<APPLET code="JMSImage.class" archive="jms.jar" width=60 height=60>
<PARAM name="cabbase" value="jms.cab">
<PARAM name="name" value="left">
<PARAM name="image0" value="imageflipdot.gif">
<PARAM name="image1" value="imageflipleft.gif">
<PARAM name="event0" value="menu.mouse enter.previous,1">
</APPLET>

This is the html code for the center applet below:
<APPLET code="JMSPopupMenu.class" archive="jms.jar" width=320 height=80>
<PARAM name="cabbase" value="jms.cab">
<PARAM name="name" value="menu">
<PARAM name="menu0" value="2,1,FFFFFF,menu3.gif">
<PARAM name="cell0" value="40,20,120,40">
<PARAM name="names0" value="Popup 1,Popup 2">
<PARAM name="links0" value="menu1,menu2">
<PARAM name="menu1" value="1,2,003F7F,popup1.gif,popupalpha.gif">
<PARAM name="cell1" value="5,5,70,25">
<PARAM name="names1" value="Previous,Next">
<PARAM name="links1" value="jmstutorial5.html,jmstutorialindex.html">
<PARAM name="menu2" value="1,2,003F7F,popup2.gif,popupalpha.gif">
<PARAM name="cell2" value="5,5,70,25">
<PARAM name="names2" value="Previous,Next">
<PARAM name="links2" value="jmstutorial5.html,jmstutorialindex.html">
<PARAM name="target" value="tutorial">
</APPLET>

This is the html code for the right applet below:
<APPLET code="JMSImage.class" archive="jms.jar" width=60 height=60>
<PARAM name="cabbase" value="jms.cab">
<PARAM name="name" value="right">
<PARAM name="image0" value="imageflipdot.gif">
<PARAM name="image1" value="imageflipright.gif">
<PARAM name="event0" value="menu.mouse enter.next,1">
</APPLET>

Here the JMSPopupMenu applet and the JMSImage applet are combined. The JMSPopupMenu applet can generate a 'mouse exit' event and a 'mouse enter.<itemname>' event. This means that if the mouse cursor comes over an item with the name 'previous', as in this example, the applet will generate the event 'mouse enter.previous'. Whenever this happens in this example, the left applet will respond by changing to image 1. A similar thing goes for the right applet.


Back to the jvojava page


Applet Index
(sorted alphabetically)

A B C D E F G H I J K
L M N O P Q R S T U
V W X Y Z #s
The Java Source
(applets w/source code)

A B C D E F G H I J K
L M N O P Q R S T U
V W X Y Z

How to Add Java Applets to Your Site

New on the Java Boutique:

New Article:
J2EE Deployment Specification
Why is it that J2EE applications written in the same language, Java, may not coexist on different servers? While the answer isn't simple Sun has set out to alleviate these problems with the "J2EE Deployment Specification".
... [more articles]

New Tutorial:
Designing Packages for Stability
Are your designs stable? This month Samudra will focus on the change impact relationship involved in designing classes showing us how to take them into account when designing the package relationship.
... [more Tutorials]

Year in Review:
The Best of 2002
The year 2002 saw 201 new applets posted to JavaBoutique. Check out the 2 most popular apps from each month of 2002!
... [popular applets]

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.

internet.com logo






Developer News

Deadline Looms for IBM's AIX

HP, Dell Pledge Java Support

Putting Java in ONE Cup



Database Journal Launched!
Jupiter Media has announced the launch of Database Journal. DBJ offers SQL courses and other database related resources for beginner to expert developers.



PhotoMap
PhotoMap is made of many pictures and links. You can travel in "photo map world" where you have never visit yet.
Download of the Week
BSCOutline v5.10
BSCOutline Java Outline Applet is a customizable tree view control for use in Web pages, similar to that used by Windows File Manager or Explorer. BSCOutline has been written to be the simple to use and small to store.

JB User Poll
As a JavaBoutique Reader what kind of articles do you prefer?
The JavaBoutique Top 15:
1. ChompText
2. PingPong
3. DJPopMenu
4. NavBar
5. 3DMaze
6. RushHour
7. Nibbly
8. Encyclo
9. AnimLetters_anim
10. AScroll2
11. Viewer
12. Distorter
13. BMI
14. BMMenu
15. SonaliCalendar
Want more? Check out our Top 100!

Refer-It
Affiliate Program and Referral Directory.
New on internet.com
Are Open Source Databases Following in Linux' Footsteps?
All signs seem to point to open-source databases providers following the path of Linux in building momentum.

B-Blogs: Mega-Meta, Very Viral
Are you laid-back enough to b-blog?

A Primer to Active Directory
Active Directory is a potent tool for managing large networks of systems across WANs and LANs, but it can be complex to understand and administer. Beth Cohen's primer is designed to help you get acquainted with the tool that can help you create a robust and flexible architecture for addressing your company's needs.


Find the lowest price for a variety of products:


Featured Categories:
Computers
Digital Cameras
Home Theatre
Video Games
Laptops
Software
Electronics
PDA's

Jupitermedia is publisher of the internet.com and EarthWeb networks.
Copyright 2003 Jupitermedia Corporation All Rights Reserved.

Legal Notices,  Licensing, Reprints, & Permissions,  Privacy Policy.
http://www.internet.com/
http://www.earthweb.com/