Avatar of Zolf
ZolfFlag for United Arab Emirates

asked on 

Applet paramenter help


hello there,

i have this applet code from sun java demo folder and want to know what does the code do.can anybody explain.

<applet code=ImageMap.class width=684 height=71>
      <param name=img value="images/7224.jpg">
      <param name=highlight value="brighter30">
      <param name=area1 value="SoundArea,260,180,120,60,audio/hi.au">
      <param name=area2 value="NameArea,260,180,120,60,Hi!">
      <param name=area3 value="HighlightArea,260,180,120,60">
      <param name=area4 value="NameArea,265,125,45,20,That is my right eye">
      <param name=area5 value="HighlightArea,265,125,45,20">
      <param name=area6 value="NameArea,335,130,45,20,That is my left eye">
      <param name=area7 value="HighlightArea,335,130,45,20">
      <param name=area8 value="HrefButtonArea,200,7,210,300,http://java.sun.com">
      <param name=area9 value="RoundHrefButtonArea,60,0,100,120,example2.html">
      <param name=area10 value="SoundArea,425,98,27,27,audio/chirp1.au">
      <param name=area11 value="NameArea,425,98,27,27,Chirp!">
      <param name=area12 value="HighlightArea,425,98,27,27">
      <param name=area13 value="ClickArea,0,0,522,486">
Java

Avatar of undefined
Last Comment
CEHJ
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

It's an image map. You can click on various parts of the image and get messages/sounds played
Avatar of Zolf
Zolf
Flag of United Arab Emirates image

ASKER


can you tell me what are those things in the param tag.
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

>>can you tell me what are those things in the param tag.

They define regions on the image map and also sound files to play when the mouse is moved over various hotspots
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Can you tell me why you accepted that answer please zolf ?
Avatar of Zolf
Zolf
Flag of United Arab Emirates image

ASKER


the answer object provided was to very clear also he mentioned how i can find the parameters in the applet class by looking for getParameter() and since i am still new to java,it helped me to understand those things in a much better way.
what you were telling me was straight forward which i also knew,but he went into details.
if you would have given me that answer i would have given you the points.

i am sorry to disappoint you.

cheers
zolf
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

>>the answer object provided was to very clear

>>could be anything

Didn't seem to be to me
Java
Java

Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo