I trying to create a menu for a site.
I've picked up this script to show and/or hide layers. It uses an If... Then... Else statement which in the example is fine. My menu will have up to eight entries so I think a Case statement may be the way to go.
My problem is I don't know anything about using Case in this instance so I'm looking for some help.
Here's the code.
'declare 1 for each layer
Dim vis1, vis2
If request("show") = 1 Then
vis1 = "visible"
vis2 = "hidden"
vis1 = "hidden"
vis2 = "visable"
<div id="hide" style="visibility:<%=vis2%>;">this is my visable div</div>
<div id="test" style="visibility:<%=vis1%>;"> this is my hidden div</div>
<a href="testdiv.asp?show=1">show hidden layer</a>
<a href="testdiv.asp?show=2">show other layer</a>
Thanks in advance for the help.