View Full Version : How do you check if a layers is visible
cyberclown
05-08-2003, 02:27 PM
I have created a dynamic menu. my main menu is in one frame and the submenus in another. I would like it if I move my mouse out of the layer that it would then dissapear. This I can do BUT each layer is a different size and i firs want to detemine which layer is visible before the program decides the "BOUNDRY CO-ORDINATES.
wox3-iO
05-08-2003, 02:51 PM
Try this (found from dynduo (http://www.dansteinman.com/dynduo/) ):
Generic Show and Hide Functions
Instead of always rewriting the same code over and over again to show and hide elements, you can use the following functions:
function showObject(obj) {
if (ns4) obj.visibility = "show"
else if (ie4) obj.visibility = "visible"
}
function hideObject(obj) {
if (ns4) obj.visibility = "hide"
else if (ie4) obj.visibility = "hidden"
}
>The whole story (http://www.dansteinman.com/dynduo/en/showhide.html)<
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.