On 08/16/2013 01:48 AM, Pshemak Maslak wrote: > Thanks, these are examples of how to "hide" Jmol/JSmol before (or > during) the loading of the app. > > I am after a situation where Jmol/JSmol is normally displayed on page > load for all of those who have Java/JS on their device, but a substitute > picture is displayed for those who do no not, or when the page is > printed (from the browser). > Just an idea that might help for printing, but I havn't tried anything in that direction myself.
In CSS you can define separate styles for printing. Place an element (substitute image or something else you want to be printed) at the same position as Jmol. Define per CSS (z-index) that it ususally is drawn underneath Jmol. For printing use a different z-index for it in you CSS definitions that will bring Jmol underneath it. A more sophisticated solution using Javascript might envolve changing the substitute image before printing by an image of the current view. As far as I remember layering can be tricky because you might need to set also other parameters (like position, maybe) correctly so that the z-index setting is actually used. But I havn't done anything like that for a while. Regards, Rolf -- Rolf Huehne Postdoc Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI) Beutenbergstrasse 11 07745 Jena, Germany Phone: +49 3641 65 6205 Fax: +49 3641 65 6210 E-Mail: rhue...@fli-leibniz.de Website: http://www.fli-leibniz.de Scientific Director: Prof. Dr. K. Lenhard Rudolph Head of Administration: Dr. Daniele Barthel Chairman of Board of Trustees: Dennys Klein VAT No: DE 153 925 464 Register of Associations: No. 230296, Amtsgericht Jena Tax Number: 162/141/08228 ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users