Closed Thread Icon

Topic awaiting preservation: Ok.. mixing DHTML with my form... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=7899" title="Pages that link to Topic awaiting preservation: Ok.. mixing DHTML with my form... (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Ok.. mixing DHTML with my form... <span class="small">(Page 1 of 1)</span>\

 
sonicsnail
Bipolar (III) Inmate

From: Scotland
Insane since: Jun 2001

posted posted 10-26-2001 00:08

Hi again...

Here's the bare bones of my page

Here's what I want to do...

I want to have a hidden layer appear once all of boxes 1 to 9 have been ticked (NOT box 10)...

The idea is "once you've done all of these, then you can continue..."

I'm guessing I need some sort of "IF 1,2,3,4,5,6,7,8,9 are ticked, THEN showlayer".. sort of thing...

can anyone help?

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 10-26-2001 15:04

there are lots of ways to do that,

one thing is :

code:
whattocheck   = [true, true, true, true, true, true, true, true, true, false];
whatischecked = [false, false, false, false, false, false, false, false, false, false];

function messageShow0(form_ref)
{
form_ref.messageBox.value = ""
var messageValue = ""

for (var i = 0; i < form_ref.elements.length; i++)
{
if (form_ref.elements[i].name == "cbox")
{
whatischecked[form_ref.elements[i].value] = form_ref.elements[i].checked;
if (String(whattocheck) == String(whatischecked))
alert('congratz! showLayer will be executed!');
form_ref.messageBox.value = 'A:' + whatischecked + '\nW:' + whattocheck;
}
}
}



« BackwardsOnwards »

Show Forum Drop Down Menu