Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DIVs on top of applets

Status
Not open for further replies.

febwgdk

Programmer
Aug 19, 2003
12
GB
Does any know if there is any way of overlaying a div on top of an applet? Even if it means disabling the applet in some way, that shouldn't matter.

You see, I have a web page with an applet rendered by way of an object tag, and I am dynamically creating div elements as part of a tree menu, adding them to the document and positioning them absolutely, which is all very well, except that if a div and the applet overlap, the applet always appears on top!

 
No I dont think there is a way. The reason being that the browser doesn't really handle the applet, Java Virtual Machine does (i think). This means that the applet isn't subject the usual display rules. However it may be possible to set applets visibility property using CSS. You could then make it disappear using the javascript that displays your tree menu

MrBelfry
 
Thanks. I had a feeling that was the way of it.
Never mind.
 
You said you're creating your div dynamically? What if you write it to an IFRAME that is positioned over your applet?

Adam
 
Thanks, that seems to work!

Except I can't get rid of the thin inset border around the iframe, or is it part of the iframe. Using the style settings to alter the border settings for the iframe tag merely affects the border around the inset 'border'. Do you know if I can get rid of this border, maybe by using style settings in relation to the body tag for the html rendered in the iframe?
 
doesn't border=0 or frameborder=0 work if you put them in the IFRAME?

Adam
 
Yes, frameborder does the trick.
Thanks alot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top