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--Netscape</TITLE>
</ION_HEADER>

<ION_BODY>
Watch the browser status area as you move your mouse over the map.
<br>
<br>
<MAP NAME="map2">
  <AREA COORDS="15,10,130,85" HREF="" 
    onClick="alert('You clicked on North America'); return false"
    onMouseOver="status='Mouse over North America'; return true;"
    onMouseOut= "status='';"
  >
  <AREA COORDS="170,55,250,135" HREF="" 
    onClick="alert('You clicked on Africa'); return false"
    onMouseOver="status='Mouse over Africa'; return true;"
    onMouseOut= "status='';"
  >
  <AREA COORDS="310,90,360,140" HREF="" 
    onClick="alert('You clicked on Australia'); return false"
    onMouseOver="status='Mouse over Australia'; return true;"
    onMouseOut= "status='';"
  >
  <AREA COORDS="105,85,160,150" HREF="" 
    onClick="alert('You clicked on South America'); return false"
    onMouseOver="status='Mouse over South America'; return true;"
    onMouseOut= "status='';"
  >
  <AREA COORDS="180,15,250,70" HREF="" 
    onClick="alert('You clicked on Europe'); return false"
    onMouseOver="status='Mouse over Europe'; return true;"
    onMouseOut= "status='';"
  >
  <AREA COORDS="250,10,384,105" HREF="" 
    onClick="alert('You clicked on Asia'); return false"
    onMouseOver="status='Mouse over Asia'; return true;"
    onMouseOut= "status='';"
  >
  <AREA COORDS="0,160,384,192" HREF="" 
    onClick="alert('You clicked on Antartica'); return false"
    onMouseOver="status='Mouse over Antartica'; return true;"
    onMouseOut= "status='';"
  >
  <AREA COORDS="130,10,200,40" HREF="" 
    onClick="alert('You clicked on Greenland'); return false"
    onMouseOver="status='Mouse over Greenland'; return true;"
    onMouseOut= "status='';"
  >
</MAP>
<ION_IMAGE USEMAP="#map2" 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>
<br>
<br>
Click on a continent and see what happens.

</ION_BODY>
</ION_SCRIPT>