:: ImageMap
ImageMap test. Click on a planet.
<html><img src="http://www.w3schools.com/html/planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun" href="javascript:state.display('sun', this);">
<area shape="circle" coords="90,58,3" alt="Mercury" href="javascript:state.display('mercur', this);">
<area shape="circle" coords="124,58,8" alt="Venus" href="javascript:state.display('venus', this);">
</map></html>
:: sun
You clicked on the Sun.
:: mercur
You clicked on Mercury.
:: venus
You clicked on Venus.
:: Variable Update Test
Click on a planet.
<html><img src="http://www.w3schools.com/html/planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun" href="javascript:state.history[0].variables['planet'] = 'Sun';">
<area shape="circle" coords="90,58,3" alt="Mercury" href="javascript:state.history[0].variables['planet'] = 'Mercury';">
<area shape="circle" coords="124,58,8" alt="Venus" href="javascript:state.history[0].variables['planet'] = 'Venus';">
</map></html>
The planet variable is currently set to: <<print $planet>>
[[Then click here to refresh this passage|Variable Update Test]]
:: Link and Variable Update Test
Click on a planet.
<html><img src="http://www.w3schools.com/html/planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap">
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun" href="javascript:state.history[0].variables['planet'] = 'Sun';state.display('sun', this);">
<area shape="circle" coords="90,58,3" alt="Mercury" href="javascript:state.history[0].variables['planet'] = 'Mercury';state.display('mercur', this);">
<area shape="circle" coords="124,58,8" alt="Venus" href="javascript:state.history[0].variables['planet'] = 'Venus';state.display('venus', this);">
</map></html>
The planet variable is currently set to: <<print $planet>>
:: sun
You clicked on the Sun. The planet variable is currently set to: <<print $planet>>
:: mercur
You clicked on Mercury. The planet variable is currently set to: <<print $planet>>
:: venus
You clicked on Venus. The planet variable is currently set to: <<print $planet>>