MSketch hiding css dropdowns

User e34a92cce5

20-05-2010 20:07:58

Hi,


I am using marvin 5.3.1 on my web server and have a css based stylesheet for my top menu dropdown items (e.g. http://www.dynamicdrive.com/style/csslibrary/category/C2/) . It looks like on IE, MSketch blocks the css dropdown, while with Firefox, the menu appears fine in front of MSketch when hovered over. Is there an MSketch property that would make MSketch go behind the css menu when hovered over, like it does in Firefox?

ChemAxon 7c2d26e5cf

21-05-2010 09:24:22

How do you embed Marvin applet into your web page? Do you use applet tag, object tag or marvin.js for paste applet into the html source?


Can you send a simple example how looks like this embedding on your site?

User e34a92cce5

21-05-2010 12:46:22

I use marvin.js as provided in the code example on my webpages.


msketch_name = "MSketch";
msketch_begin("/marvin", 550, 550);
msketch_param("mol", "<?php echo $_SESSION['NEW_STRUCTURE'] ?>");
msketch_end();

ChemAxon 1097721ac9

21-05-2010 19:17:54

Dear renjutj,



The problem is pretty complex and it seems there are no easy ways to solve it:


Further information:


http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6646289


(the problem also appears in Chrome)


Anyway there might be some other way to fix - iframe shim:


http://www.oratransplant.nl/2007/10/26/using-iframe-shim-to-partly-cover-a-java-applet/


But it might be problematic, we will try this and come back with results.


Yours sincerely,


Zsolt Kocsmarszky

ChemAxon 1097721ac9

25-05-2010 09:21:15

Dear renjutj,


The only way to solve this is by dynamically putting an empty iframe directly below the dropdown menu as the menus appear on mouseover. So the iframe has to be absolutely positioned, has to have the same dimensions as the appearing menu, has to be at the same place and has to have a z-index 1 smaller than the menu. Both the appearing menu and the iframe must have a z-index higher than 1.


Zsolt