Bob and Angel-
To my surprise both methods work in Firefox and Chrome. I don't use
Jmol.js. I'm an old Jmol user, and I never changed. Nevertheless,
Angel's suggestion worked just fine in Firefox and Chrome. MSIE did
not seem to like the fact that
document.getElementById("jmolApplet01").onmouseover was null when I
executed:
document.getElementById("jmolApplet01").onmouseover = function() {
alert("does this work") }
The pickCallBack works in Firefox, Chrome, and MISE. On my test with
an alert() to look at the return arguments, I think I understand all
the returned arguments except the last. I got two alerts on a click -
mouseup mousedown??
While I only need the first argument, ID, I'm curious about the last:
[...@e64834
[...@8e7b84
The above is the last argument from the two test alert returns.
Otis
2009/12/11 Angel Herráez <[email protected]>:
> Otis, I thought this couldn't be done, but a search told me that onMouseOver
> is supported
> for the applet tag, so I've done a few tests and (at least in Firefox) both
> applet and object
> are supported. So, using Jmol.js to insert the applet, you can do
>
> document.getElementById("jmolApplet0").onmouseover = function() { test() }
>
> somewhere after the applet has been inserted (e.g. at the end of the body).
> And it does
> work! The first time it seems to take some delay, though.
> The "test" function is defined elsewhere and does whatever you want.
>
>
--
Otis Rothenberger
http://chemagic.org
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users