Click to See Complete Forum and Search --> : Why do pop-up menus appear behind applets? Very Urgent


sathysudha
06-09-2003, 03:48 AM
Friends


Why do pop-up menus appear behind applets?

check this

www32.brinkster.com/nahil

thanks
sudhakar

Gollum
06-09-2003, 05:03 AM
Have you tried playing with the z-index style?

sathysudha
06-09-2003, 05:10 AM
yes i tried the z-index=1000

but no use
can i send a .js file?
can you check the z-index ?
may be i might be wrong?

Gollum
06-09-2003, 07:47 AM
Had a little look around,

the problem is that the browsers treat embedded stuff like applets as 'windowed' controls - which means that they are displayed in their own window which is always on top of the browser window.

So, in short, there is nothing you can do to put your DHTML menu over the java applet.

perhaps a Java menu?

sathysudha
06-09-2003, 08:35 AM
thanks for your reply.
but i didnt understand what u said.
will the menu will come on the applet or it will display behind the applet.?

Gollum
06-09-2003, 08:47 AM
In a windows environment (e.g. PCs), the browser typically uses different windows to display the HTML content and any embedded things like Java applets. So your DHTML menu which changes the HTML document, will be displayed on the HTML window which is always displayed underneath any Java applet.

So your options are:

* use a Java menu instead of a Javascript one.

* when you pop-up your menu, you could move the left hand side of the java applet far enough right so that it doesn't cover the menu area (and also decrease the width by the same amount). When your menu disappears, you can move it back. Not the nicest of screen effects but at least you'll see your menu.

sathysudha
06-09-2003, 08:50 AM
no pal
that will not be good effect.
it have to come over the applet.
otherwise i have drop that idea.
i have to put another drop down menu.

anyway thanks for your suggestion