Nevermind, Bob. Suddenly after sending the mail both Jmols seem to work 
consistently in this version of Firefox. Must have been a cache thing even 
though I had tried reloading several times and even new windows.

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

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