...is good at HTML and Javascript?
The scenario:
I have a div, then three other divs inside that. I need to turn them on and off depending on a given state. That part is not that relavent for I have (I think) a away to deal with passing the state. My problem is the Javascript for I know jack **** of it. This will most likely passed into the onLoad.
Here's what I tried to slap together
What say the masses?
Edit: Obviously, I'm not banned. CoolMatty think's he's funny but he FAILS.
The scenario:
I have a div, then three other divs inside that. I need to turn them on and off depending on a given state. That part is not that relavent for I have (I think) a away to deal with passing the state. My problem is the Javascript for I know jack **** of it. This will most likely passed into the onLoad.
Here's what I tried to slap together
Code:
<script language="javascript" type="text/javascript"> function toggleDiv(whichDiv) { if (document.getElementById) { var elems=whichDiv.split(','); var elem,style; for (var i=0 i<elems.Count; i++) { elem=elems; elemStyle=elem.style; elemStyle.display = (elemStyle.display=="none") ? "block" : "none"; } } } </script> ... <body onload="toggleDiv('welcome','error');">
What say the masses?
Edit: Obviously, I'm not banned. CoolMatty think's he's funny but he FAILS.
Code to the left of him, code to the right of him, code in front of him compil'd and thundered. Programm'd at with shot and $SHELL. Boldly he typed and well. Into the jaws of C. Into the mouth of PERL. Debug'd the 0x258.