Frieda S. Reichsman wrote:

Additionally, I think there is a way to code it so the mouseover image remains in place when the button is clicked, serving as a visual cue as to which buttons have already been clicked. This is useful in longer tutorials with text interspersed with buttons, but I do not know how to code it. If someone has a suggestion it would be most welcome...

Tie the image to the state value on mouseout. So, for example:

onmouseout="rollover('example', (somethinghere.value?image02:image01))">



<head>
<script language="JavaScript">
<!--
image01= new Image(42,42)
image01.src="test.gif"
image02= new Image(42,42)
image02.src="test2.gif"

function rollover(imagename, newsrc){
document.images[imagename].src=newsrc.src
}
//-->
</script>
</head>

<body>
<a href="#" onmouseover="rollover('example', image02)"
onmouseout="rollover('example', image01)">
<img src="test.gif" border="0" name="example">
</a>
</body>


Frieda

*************************************
Frieda S. Reichsman, PhD
Molecules in Motion
Interactive Molecular Structures
http://www.MoleculesInMotion.com
Shutesbury, MA
*************************************


-- Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107 Professor of Chemistry, St. Olaf College 1520 St. Olaf Ave., Northfield, MN 55057 mailto:[EMAIL PROTECTED] http://www.stolaf.edu/people/hansonr




------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to