Click to See Complete Forum and Search --> : display/visibility issues with two diffreent JS files


nails
12-12-2003, 10:36 AM
Fellow subscribers;

I am having an issue with the display and/or visible attributes on the following URL. I have an area hidden "underneath" the red bars with yellow section headers. When the user clicks on the button, the content underneath is shown as it should. If you click on the "about" section, you will see a secondary navigation on the right. This is where the problem is. When you click on the sub-nav buttons the content should display to the right, on the white overlay screen, but it doesn't. Any suggestions? There are three JS files attached. The clam.js file displays the secondary navigation. The layers.js file SHOULD display content when the secondary navigation is clicked.

Thanks

http://www.oh-ryan.com/php/oh-ryanV2-html/switch.html

woodknut
12-12-2003, 11:12 AM
Looks like the start of a cool site!

Your source code has these external *.js files in this order:
<script type="text/javascript" src="js/clam.js"></script>
<script type="text/javascript" src="js/list.js"></script>
<script type="text/javascript" src="js/layers.js"></script>

Is it possible that a routine in "clam" is using a global variable that is then later referenced in "layers", and at that point the variable is zero or undefined?
You could change the order of the scripts to quickly test this I would think.

woodk

nails
12-12-2003, 12:13 PM
thanks.

i tried it but that doesn't work. i really just used these scripts from a few other sites that i've seen that use these scripts. I honestly don't know what they do. Are there any JS tutorial sites or books that you would suggest to, i guess, learn from scratch? Thanks again for the reply.