Page 1 of 1

Annoying issue.

Posted: Sun Dec 04, 2011 10:48 pm
by sk1llers
Guys, I have a really annoying issue. So i have java applet and css drop down, but when i hover over the tabs to get the dropdown effect, they go behind the java applet.

Is there anyway to fix this? This is really bothering me..

Re: Annoying issue.

Posted: Mon Dec 05, 2011 7:39 am
by bowersbros
try css z-index. ITs teh only thing i can think of. sorry

Ill think more later, late for college :P

Re: Annoying issue.

Posted: Mon Dec 05, 2011 8:42 am
by sk1llers
bowersbros wrote:try css z-index. ITs teh only thing i can think of. sorry

Ill think more later, late for college :P


Nope, that doesn't work with java applets. Thanks for trying though, appreciate it.

Re: Annoying issue.

Posted: Mon Dec 05, 2011 1:50 pm
by jacek
If Java applets work the same way as flash does. There is no way since they are rendered after the page using somethign like opengl.

Re: Annoying issue.

Posted: Mon Dec 05, 2011 5:16 pm
by bowersbros
Note, this is incredibly bad practice.. But

Place the applet in an iframe, which you include. Then with the iFrame set the z-index to 1 and with the menu or whatever, set it to anything larger. Like 50.

That should hopefully fix your issue?

Re: Annoying issue.

Posted: Tue Dec 06, 2011 12:11 am
by sk1llers
jacek wrote:If Java applets work the same way as flash does. There is no way since they are rendered after the page using somethign like opengl.


Yes, there is a way to do it with flash.

and i'll try what you said bower

Re: Annoying issue.

Posted: Tue Dec 06, 2011 11:43 am
by EcazS
You could try placing the Java applet inside a div with a position: absolute and the z-index property.

"Creating layers with the z-index:
Elements must be positioned absolutely or be a descendant of that positioned element.
An element with a higher z-index appears in front of an element with a lower z-index."