Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

FBrandt

Erro em código

Recommended Posts

fiz uma página com esqueminha em javascript ele funciona só q tem um errinho na página q eu não consigo identificar alguém pode me ajudar?

CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Untitled Document</title>

<style type="text/css">

<!--

.style2 {font-size: 12px}

.style3 {

font-size: 14px;

font-weight: bold;

}

-->

</style>

</head>

 

<body>

<STYLE type="text/css">

.Formulario {

BORDER-RIGHT: #cccccc 1px solid; BORDER-TOP: #cccccc 1px solid; FONT-SIZE: 10px; BORDER-LEFT: #cccccc 1px solid; COLOR: #333333; BORDER-BOTTOM: #cccccc 1px solid; FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #e0e0e0

}

</STYLE>

<script language=JavaScript>

function mostra_conteudo_aluno (id_obj)

{

if (id_obj == "aluno_sim")

{

document.getElementById("div_aluno").style.display ="";

document.getElementById("div_nao_aluno").style.display ="none";

document.getElementById("aluno_sim").checked = true;

document.getElementById("hidden_aluno_conteudo").value ="0";

}

else

{

document.getElementById("div_aluno").style.display ="none";

document.getElementById("div_nao_aluno").style.display ="";

document.getElementById("aluno_nao").checked = true;

document.getElementById("hidden_aluno_conteudo").value ="1";

}

}

 

</SCRIPT>

<table width="600" border="0" cellspacing="0" cellpadding="0">

<tr>

<td bgcolor="efefef"><table width="580" border="0" align="center" cellpadding="2" cellspacing="2">

<tr>

<td width="23"><input id="aluno_sim"

onclick="mostra_conteudo_aluno(this.id)" type="radio" name="esconder_aluno" /></td>

<td width="543" class="style3">Já sou cadastrado</td>

</tr>

<tr>

<td> </td>

<td><span class="style2">Se você já possuí seus dados de acesso, basta inseri-los nos campos abaixo!</span></td>

</tr>

<tr>

<td> </td>

<td><div id="div_aluno" style="DISPLAY: none">

<table width="528" border="0" align="left" cellpadding="4" cellspacing="1"

bgcolor="#cccccc">

<tbody>

<tr>

<td bgcolor="#ffffff"><table cellspacing="0" cellpadding="4" border="0">

<tbody>

<tr>

<td><b>Login:</b></td>

<td><b>Senha:</b></td>

<td width="200"><div align="center"></div></td>

</tr>

<tr>

<td><input class="Formulario" maxlength="20" size="25" name="login" /></td>

<td><input class="Formulario" type="password" maxlength="15" name="senha" /></td>

<td><input type="submit" class="Formulario" value="Enviar" name="submit" /></td>

</tr>

</tbody>

</table></td>

</tr>

</tbody>

</table>

</div></td>

</tr>

<tr>

<td><input id="aluno_nao" onclick="mostra_conteudo_aluno(this.id)" type="radio" name="esconder_aluno" /></td>

<td><span class="style3">Esqueceu sua senha?</span></td>

</tr>

 

<tr>

<td> </td>

<td><div id="div_nao_aluno">

<table cellspacing="1" cellpadding="4" width="528"

bgcolor="#cccccc" border="0">

<tbody>

<tr>

<td bgcolor="#f2f2f2"><span class="style2">Se seu e-mai estiver cadastrado basta inseri-lo no campo abaixo e você receberá sua senha em seu e-mail!</span></td>

</tr>

<tr>

<td bgcolor="#ffffff"><table cellspacing="0" cellpadding="4" border="0">

<tbody>

 

<tr>

<td width="48"><b>E-mail:</b></td>

<td width="222"><input class="Formulario" maxlength="40" size="40" name="email" />

 </td>

<td width="2"> </td>

<td width="137"><input type="submit" class="Formulario" name="submit2" value="Enviar" /></td>

</tr>

</tbody>

</table></td>

</tr>

</tbody>

</table>

</div><script type=text/javascript>

mostra_conteudo_aluno ('aluno_sim');

</SCRIPT></td>

</tr>

</table></td>

</tr>

</table>

</body>

</html>

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.