image_designs
09-13-2002, 07:53 PM
hi guys ... i need some help identifying if a layer is visible or not before something is done.
this is the code i constructed on my own...actually i modified it from the original which i posted below.
function drs(text) {
dts(1,text);
}
=================SAMPLE CODE===================
==============================================
function drs(text) {
if document.showimage.document.visibility = "hide" {
dts(1,text);
}
else if document.showimage.document.visibility = "hidden" {
dts(1,text);
}
}
==============================================
i need someone to please point me in the right direction as to wat the problem is with the above code....... i need it to check if a layer is visible and if it is then not to do anything but if it is then do "dts(1,text);"
appreciate the help.
thanks again
this is the code i constructed on my own...actually i modified it from the original which i posted below.
function drs(text) {
dts(1,text);
}
=================SAMPLE CODE===================
==============================================
function drs(text) {
if document.showimage.document.visibility = "hide" {
dts(1,text);
}
else if document.showimage.document.visibility = "hidden" {
dts(1,text);
}
}
==============================================
i need someone to please point me in the right direction as to wat the problem is with the above code....... i need it to check if a layer is visible and if it is then not to do anything but if it is then do "dts(1,text);"
appreciate the help.
thanks again