Hi,
I have the following bit of code;
...which works greate with hiding/showing a div layers. i.e;
<a onclick="showhide('div_233')">
This works fine ... if using;
<div id="div_233">
... but how could I change it to work with;
So in short, I need to make all of these "divs" visable when using the showhide() routine.
Any suggestions?
TIA
I have the following bit of code;
Code:
<script language="javascript">
<!--
var state = 'none';
function showhide(layer_ref) {
if (state == 'block') {
state = 'none';
}
else {
state = 'block';
}
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[layer_ref].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(layer_ref);
hza.style.display = state;
}
}
//-->
</script>
...which works greate with hiding/showing a div layers. i.e;
<a onclick="showhide('div_233')">
This works fine ... if using;
<div id="div_233">
... but how could I change it to work with;
Code:
<div id="div_233.1">..</div>
<div id="div_233.2">..</div>
<div id="div_233.3">..</div>
<div id="div_233.4">..</div>
<div id="div_233.5">..</div>
..etc
So in short, I need to make all of these "divs" visable when using the showhide() routine.
Any suggestions?

TIA