An added bonus!! You also get the groovy finger pointer happening instead of just the mouse arrow!!
Highlight your graphic, create an action hotspot and put your @formula in it.
In my example I have a pop-up window to enter some information. I want to save the document in the pop-up, close the pop-up window and change the graphic on the main from a 'cross' to a 'tick'.
Picture - // "type" is a field on the mainform that holds the value of the associated graphic id onClick var name = document.forms.type.value; eval("opener.document." + name + ".src='ok'"); window.close() onMouseOut document.forms.save.src = "saveoff"; //Using alias of Image Resource onMouseOver document.forms.save.src = "saveon"; HotSpot (which is over the Picture) @Command([FileSave])
This was first published in November 2001