ION Script source code:




<!-- Copyright (c) 1997-2002, Research Systems, Inc.  All rights reserved.
     Unauthorized reproduction prohibited. -->


<ION_SCRIPT>
<ION_HEADER>
  <APPLICATION>ION Script Examples</APPLICATION>
  <TITLE>World Map JavaScript Example--Internet Explorer</TITLE>
</ION_HEADER>

<ION_BODY>
Watch the browser status area as you move your mouse over the map.
<br>
<br>
<ION_IMAGE USEMAP="#map1" WIDTH="384" HEIGHT="192">
  <IDL>
    read_jpeg,FILEPATH(SUB=['products','ion','ion_script','examples', 'data'], 'earth.jpg'),image
    help,image
    image=COLOR_QUAN(TEMPORARY(image),1,r,g,b)
    tvlct,r,g,b
    tv, image,/ORDER
 </IDL>
</ION_IMAGE>
<MAP NAME="map1">
  <AREA COORDS="15,10,130,85" 
    onMouseOver="status='Mouse over North America'; return true;"
    onMouseOut= "status='';"
    onMouseDown="alert('You clicked on North America'); return true;"
  >
  <AREA COORDS="170,55,250,135" 
    onMouseOver="status='Mouse over Africa'; return true;"
    onMouseOut= "status='';"
    onMouseDown="alert('You clicked on Africa'); return true;"
  >
  <AREA COORDS="310,90,360,140"
    onMouseOver="status='Mouse over Australia'; return true;"
    onMouseOut= "status='';"
    onMouseDown="alert('You clicked on Australia'); return true;"
  >
  <AREA COORDS="105,85,160,150" 
    onMouseOver="status='Mouse over South America'; return true;"
    onMouseOut= "status='';"
    onMouseDown="alert('You clicked on South America'); return true;"
  >
  <AREA COORDS="180,15,250,70" 
    onMouseOver="status='Mouse over Europe'; return true;"
    onMouseOut= "status='';"
    onMouseDown="alert('You clicked on Europe'); return true;"
  >
  <AREA COORDS="250,10,384,105" 
    onMouseOver="status='Mouse over Asia'; return true;"
    onMouseOut= "status='';"
    onMouseDown="alert('You clicked on Asia'); return true;"
  >
  <AREA COORDS="0,160,384,192" 
    onMouseOver="status='Mouse over Antartica'; return true;"
    onMouseOut= "status='';"
    onMouseDown="alert('You clicked on Antartica'); return true;"
  >
  <AREA COORDS="130,10,200,40" 
    onMouseOver="status='Mouse over Greenland'; return true;"
    onMouseOut= "status='';"
    onMouseDown="alert('You clicked on Greenland'); return true;"
  >
</MAP>
<br>
<br>
Click on a continent and see what happens.

</ION_BODY>
</ION_SCRIPT>