Do you want to add the code to the graphic itself, or to an href
wrapped around it? The former is possible, the latter is more usual,
and actually the correct way to do this, since you will get a
pointing finger cursor “for free”.
If you click on your image and add a link to it with the Hyperlink
dialog (Apple-K), then you can add these events through that dialog.
URL. (If you’re reading this in mail, don’t include the back-ticks I
used to set off the code for easier display on the Web.) Don’t close
the dialog yet.
Now, click on the Extended button in the Hyperlnk dialog, and enter
your onclick and onmouseover events separately. Click on new, and in
the resulting sub-dialog, enter onclick or onmouseover in the Name
field, and the complete script you want to call, probably hello();,
in the Value field. Okay out of the stack of dialogs, and preview in
a browser. You should see your function fire as you mouse over or click.
On May 8, 2008, at 11:45 AM, Tonsils wrote:
that will perform a onclick or onmouseover which in turn calls a