Alright, I made a table of contents page that has a few invisible div elements that hold links for the code examples for each section. My question is this, what am I doing wrong here? Here is the HTML for the div element to make it invisible:
I think this is right. Now, here is the VBScript to control the visibility of the div element:Code:<div id = "div1" style = "position:absolute; width:300px; height;100px; visibility:hidden;">
The script is incomplete but I am going to use a check on the value of the button to determine whether or not to hide or show the div element. Another thing too is that when I run the page with this script and click on the button, I get this error message:Code:Sub Examples1_onclick 'Show the invisible div layer and change the caption of the button div1.style.visibility = visible Examples1.value = "Hide Examples" End Sub
variable is undefined: visible
Does this have something to do with the fact that I used Option Explicit in my VBScript? Thanks for any help!![]()




Reply With Quote