Ir para conteúdo
Fórum Script Brasil
  • 0

Onmouseover Na Linha está Tabela


Tite

Pergunta

Pessoal.. este codigo:

<tr style="cursor:default" onMouseOver="java script:this.style.backgroundColor='#C0B085'" onMouseOut="java script:this.style.backgroundColor=''">

faz com que ao passar o mouse sobre linha de uma tabela, mude a cor do background desta tabela...

mas este codigo só está funcionando em arquivo HTML..

Em arquivo ASP não dá certo...

alguém sabe fazer esse efeito em ASP????

Abraços.

Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts Recomendados

  • 0

LA VAI então O CODIGO FUNCIONANDO PERFEITAMENTE EM HTML... PEGUEI DE

UM SITE que não LEMBRO MAIS QUAL FOI.

<html>   
<head>   
<title></title>   
</head>   
<body bgcolor="#FFFFFF" text="#000000">   
<table width="50%" border="1" cellspacing="0" cellpadding="0" align="center">   
<tr>    
<td height="103">    
<div align="center"><font color="#0000CC">Passe o mouse sobre as linhas para ver o resultado!</font></div>   
</td>   
</tr>   
  
<tr style="cursor:default" onMouseOver="java script:this.style.backgroundColor='#C0B085'" onMouseOut="java script:this.style.backgroundColor=''">    
<td height="5"><div align="center">Linha 01 da tabela</div></td>   
</tr>   
  
<tr style="cursor:default" onMouseOver="java script:this.style.backgroundColor='#C0B085'" onMouseOut="java script:this.style.backgroundColor=''">    
<td height="2"><div align="center">Linha 02 da tabela</div></td>   
</tr>   
  
<tr style="cursor:default" onMouseOver="java script:this.style.backgroundColor='#C0B085'" onMouseOut="java script:this.style.backgroundColor=''">    
<td height="2"><div align="center">Linha 03 da tabela</div></td>   
</tr>   
  
<tr style="cursor:default" onMouseOver="java script:this.style.backgroundColor='#C0B085'" onMouseOut="java script:this.style.backgroundColor=''">    
<td height="2"><div align="center">Linha 04 da tabela</div></td>   
</tr>   
  
<tr style="cursor:default" onMouseOver="java script:this.style.backgroundColor='#C0B085'" onMouseOut="java script:this.style.backgroundColor=''">    
<td height="2"><div align="center">Linha 05 da tabela</div></td>   
</tr>   
  
<tr>    
<td height="82">    
</td>   
</tr>   
</table>   
</body>   
</html>

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      651,9k
×
×
  • Criar Novo...