Hi Bob,
In Firefox on the Mac, I have trouble with the Jmol1 on the left. I see the 
JSmol come up but clicking and dragging in the canvas fails to move the 
structure. The one on the right is fine. I wonder if others using Firefox on 
Macs see this? I am on my work mac and so it isn't running the bleeding edge of 
anything.

In Chrome and Safari they both work on the Mac.
This is great. With your guidance, I was using the Z-index before to cover the 
canvas and then issuing javascript from the end of my display script upon 
loading. This makes it much easier.
Wayne


----------------------------------------------------------------------

Message: 1
Date: Wed, 6 Mar 2013 05:32:13 -0600
From: Robert Hanson <[email protected]>
Subject: Re: [Jmol-users] cover image
To: "[email protected]"
    <[email protected]>
Message-ID:
    <caf_yuvvkfeu+d6301osrx2qdmgg_xva57uk5bycskbufdnm...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Here's a first shot:

http://chemapps.stolaf.edu/jmol/jsmol/cover.htm

It's not perfect, but I think it's a start. Basically, it adds several more
Info items:
      coverImage: null,     // URL for image to display
      coverTitle: "",       // tip that is displayed before model starts to
load
      coverCommand: "",     // Jmol command executed upon clicking image
      deferApplet: false,   // true == the model should not be loaded until
the image is clicked
      deferUncover: false,  // true == the image should remain until
command execution is complete

I think that should cover most of the interesting cases.
Code is in http://chemapps.stolaf.edu/jmol/jsmol.zip

Bob


On Tue, Mar 5, 2013 at 9:40 AM, Robert Hanson <[email protected]> wrote:

> Would it be reasonable to add to Info an option to have and initial cover
> image that is replaced upon clicking  with whatever the results of a
> command are?
>
> Info {
> ...
> coverImage: "xxxxxx.png",
> coverCommand: "load xxxxx.png"
>
> }
>
> or something like that?
>
> Bob
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Chemistry Department
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to