Applet  paramenter help

Posted on 2006-05-20
Last Modified: 2010-03-31

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/">
      <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,">
      <param name=area9 value="RoundHrefButtonArea,60,0,100,120,example2.html">
      <param name=area10 value="SoundArea,425,98,27,27,audio/">
      <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">
Question by:zolf
    LVL 86

    Expert Comment

    It's an image map. You can click on various parts of the image and get messages/sounds played

    Author Comment


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

    Accepted Solution

    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.


    Have a look at the source to see what they do with the values got from calling getParameter()
    LVL 86

    Expert Comment

    >>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
    LVL 86

    Expert Comment

    Can you tell me why you accepted that answer please zolf ?

    Author Comment


    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.

    LVL 86

    Expert Comment

    >>the answer object provided was to very clear

    >>could be anything

    Didn't seem to be to me

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    737 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

    20 Experts available now in Live!

    Get 1:1 Help Now