Info.z is an associative array that defines explicitly what the z-index is
to be for applet-related div elements. Some subset of these:
Info.z = {
header:,
rear:,
main:,
image:,
front:,
fileOpener:,
coverImage:,
dialog:,
menu:,
console:,
monitorZIndex:
}
It overrides all those values for this applet. Some of these are more
relevant to JSV
Info.zIndexBase is a number that allows setting all of these at once for
this particular applet and also sets the default for all other applets on
the page, in case they are not defined for those applets. It's default is
9000.
Info.zIndexBase is passed to Jmol.getZOrders as the first parameter "z",
setting the starting point for all z-indexes for the divs:
Jmol.getZOrders = function(z) {
return {
header:z++,
rear:z++,
main:z++,
image:z++,
front:z++,
fileOpener:z++,
coverImage:z++,
dialog:z++, // could be several of these, JSV only
menu:z+90000, // way front
console:z+91000, // even more front
monitorZIndex:z+99999 // way way front
}
};
This can all be found in JSmolCore.js
Bob
On Tue, Sep 9, 2014 at 5:36 AM, Angel Herráez <angel.herr...@uah.es> wrote:
> Dear Bob,
>
> Can you explain the difference between Info.z and Info.zIndexBase?
>
> For now, I am setting both, but would prefer to be more specific
> --and also complete the doc
> http://wiki.jmol.org/index.php/Jmol_JavaScript_Object/Info
>
> Thanks
>
>
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce.
> Perforce version control. Predictably reliable.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Department of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
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
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users