ericaalicen
Programmer
I have a script that is used to hide and show layers that works fine. Now the client wants an option to expand all layers at once and I can't seem to get the syntax right.
I'm passing in "lyr1", but don't really need to pass anything for this, really.
This is the call:
Any help is appreciated.
Code:
<script type="text/javascript">
function expandAll(list)
{
var mycount = "#mycount#"
for (i=0; i < mycount; i++)
{
document.getElementById("lyr"+i).style.display = "block";
}
}
</script>
I'm passing in "lyr1", but don't really need to pass anything for this, really.
This is the call:
Code:
<a href="javascript:expandAll('lyr1');">
Any help is appreciated.