Hello there,

I certainly could use some of your mind power right now.  My problem is a JavaScript I 
have written but doesn't quite do what I need.  It is about 95% there but I am having 
a problem when using Netscape.  The problem deals with show/hide & div visibility.

This is a ShowHide() function once the browser type has been established.  Here is a 
sample of the script I have written:

function ShowHide(elementName) { 
        if (navigator.appName == "Netscape" && document.layers != null) {
                theObj = document.layers[elementName].visibility; 
                if (theObj != "show") document.layers[elementName].visibility = "show";
                        else document.layers[elementName].visibility = "hide";
        }
        else if (document.all != null) { //Microsoft 
                theObj =  document.all[elementName].style.display ; 
                if (theObj != "") document.all[elementName].style.display = "";
                        else document.all[elementName].style.display = "none";
        } 
        return true;
}


In the body of the document I have a "Repeat" set with a hyperlink to data. 

<REPEAT>

Within the repeat I have layer and div tags which looks like this:

<NETSCAPE>
<Layer id="Layer<!$LINE_NUMBER>" style="position:relative;" visibility="hide;"> 
<NETSCAPE,else>
<div id="Layer<!$LINE_NUMBER>" style="position:relative; display:none;"> 
</NETSCAPE>

Within the layer and div tags I have more data being displayed for each repeat 
dataset.  Each dataset has a link to a calculator and what I call an input box lookup 
which I can select a piece of data and it is carried over to the input box.

I have closed the layer and div tags with the following code:

<NETSCAPE>
</Layer>
<NETSCAPE,else>
</div>
</NETSCAPE>

</REPEAT>

My script works great with MS Explorer but has a problem with Netscape.  I am losing 
my lookups and calculator features when using Netscape.

If anyone could verify my JavaScript and layer/div tags I would appreciate it.  Or if 
you could refer me to another source that would also be appreciated.

Thanks

John

Visit www.cfworkshop.com
_______________________________________________________________________

Why pay when you don't have to? Get AltaVista Free Internet Access now! 
http://jump.altavista.com/freeaccess4.go

_______________________________________________________________________

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to