My Layers in HTML wont work

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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=3D"Javascript">
function showfield(keuze)
 if (keuze =3D 'recht')
        if (keuze=3D=3D 'industrie')
if (keuze=3D=3D 'onderwerp')



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

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


Re: My Layers in HTML wont work


Quoted text here. Click to load it = "visible";
Also, you MUST have a look at getElementById to ensure higher  
cross-browser compatibility.

Quoted text here. Click to load it

Of the div element, not tag ;)

Re: My Layers in HTML wont work

Quoted text here. Click to load it

It looks like Mitja has your problem sorted out, but you may want to
check out this page for future reference: /

Mark Parnell
alt.html FAQ :: /

Site Timeline