C
Charles
Is it possible to merge two functions like these?
<script type="text/javascript">
function showdiv(pass) {
setTimeout('showdiv2("'+pass+'")', 750);
}
function showdiv2(pass) {
var divs = document.getElementsByTagName('div');
for(i=0;i<divs.length;i++){
if(divs.id.match(pass)){
if (document.getElementById)
divs.style.visibility="visible";
}
else {
if (document.getElementById)
divs.style.visibility="hidden";
}
}
}
</script>
Thanks!
<script type="text/javascript">
function showdiv(pass) {
setTimeout('showdiv2("'+pass+'")', 750);
}
function showdiv2(pass) {
var divs = document.getElementsByTagName('div');
for(i=0;i<divs.length;i++){
if(divs.id.match(pass)){
if (document.getElementById)
divs.style.visibility="visible";
}
else {
if (document.getElementById)
divs.style.visibility="hidden";
}
}
}
</script>
Thanks!