• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

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">
0
zolf
Asked:
zolf
  • 4
  • 2
1 Solution
 
CEHJCommented:
It's an image map. You can click on various parts of the image and get messages/sounds played
0
 
zolfAuthor Commented:

can you tell me what are those things in the param tag.
0
 
objectsCommented:
could be anything, the applet can access them using its getParameter() method. WHat it does with them is up to the applet
My guess is they define area on the applet and the action associated with it.

name,x,y,width,height,action

Have a look at the source to see what they do with the values got from calling getParameter()
 
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
CEHJCommented:
>>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
0
 
CEHJCommented:
Can you tell me why you accepted that answer please zolf ?
0
 
zolfAuthor Commented:

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
0
 
CEHJCommented:
>>the answer object provided was to very clear

>>could be anything

Didn't seem to be to me
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now