also, you can add parameters like that as though they were callbacks:

jmolInitialize("./", "JmolApplet.jar")
jmolSetCallback("draggable", true)
jmolApplet(400)

On Thu, Sep 25, 2008 at 3:31 AM, Angel Herraez <[EMAIL PROTECTED]> wrote:

> Re: draggable applet
>
> Here is a partial copy of my previous post (4 Sep.)
>
> ------- Forwarded message follows -------
> [...]
> I've tested it and it works. The applet detaches (Firefox 3 and
> Chrome) and stays as a borderless window with a tiny close button
> (that returns it to the browser), no way to resize. Maybe useless,
> but cool!
>
> This is the code I've used:
>
> jmolInitialize("./", "JmolApplet.jar")
>  jmolSetDocument(0)
>  var s= jmolApplet(400)
>  s = jmolAppletAddParam(s,"draggable", "true")
>  document.write(s)
>  jmolSetDocument(document)
>
> ------- End of forwarded message -------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to