Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > My html layers are not working

Reply
Thread Tools

My html layers are not working

 
 
Jerry Manner
Guest
Posts: n/a
 
      06-07-2005
Hi

I am having problems with my layers in html

I have a radio button with 3 choices. When a option is clicked a
javascript function is called which is making a layer visible.
Here is my javascript function I have placed after the </head> tag and
before the <body> tag:

<SCRIPT LANGUAGE="Javascript">
function showfield(keuze)
{
if (keuze == 'recht')
{
recht.visibility="visible";
industrie.visibility="hidden";
}
if (keuze== 'industrie')
{
industrie.visibility="visible";
recht.visibility="hidden";
}
if (keuze== 'onderwerp')
{
recht.visibility="hidden";
industrie.visibility="hidden";
}

}

</SCRIPT>

Here is the code of the radio button inside the body tag:
<form method="POST" action="--WEBBOT-SELF--">
<p><font face="Arial" size="2">Zoek:&nbsp;&nbsp;
<input type="radio" value="Onderwerp" name="RadioB1"
onclick="showlist('onderwerp')"
checked>Onderwerp&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" value="Diensten" name="RadioB1"
onclick="showlist('Diensten')">Diensten&nbsp;
<input type="radio" value="Producten" name="RadioB1"
onclick="showlist('Producten')">Producten&nbsp;</font>
</p>
</form>


What did I forget to do to make the hidden/visible property of the div
tag work??

Regards

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML CSS layers problem Bob HTML 3 07-02-2008 07:30 PM
Subnets between core and access/distribution layers & routing between layers J Cisco 0 12-13-2006 08:38 PM
Position layers works in IE not Firefox/Safari cewisham@yahoo.com Javascript 11 04-28-2006 04:21 AM
Flash.GotoFrame in DIV layers - does not work on BODY.onLoad on FireFox Atara100@gmail.com Javascript 0 08-29-2005 08:55 AM
My Layers in HTML wont work Jerry Manner HTML 2 06-07-2005 11:24 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57