Estou utilizando o código abaixo para fazer com que quando o mouse passar por cima de uma célula, esta troque de cor, e se for clicado em cima dela, esta ativa o link contido em um texto, mas quando clico acusa algum erro, alguém saberia me dizer qual, e como concertar?
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script>
<!-- menu
function mOvr(src,clrOver) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
src.bgColor = clrOver;
}
}
function mOut(src,clrIn) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
src.bgColor = clrIn;
}
}
function mClk(src) {
if(event.srcElement.tagName=='TD'){
src.children.tags('A') [ 0 ] .click();
}
}
//-->
</script><body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td onMouseOut="mOut(this,'#eeeeee');" onMouseOver="mOvr(this,'#F8F8F8');" onClick="mClk(this);"><b><font face="Verdana" size="2" color="#666666"><a href="classificados/academias.php"><font size="1">Academias
Desportivas</font></a></font></b></td>
</tr>
</table>
</body>
</html>
Célula Troca De Cor E Ativa Link
Started By
fabioricotta
, 25/07/2003, 10:05
2 replies to this topic
#1 fabioricotta
Posted 25/07/2003, 10:05
#2
Posted 25/07/2003, 18:35
Caro amigo:
Testei o seu código e aparentemente não há nenhuma falha, tenta novamente, qualquer coisa manda um e-mail que te envio o teste que fiz pra tu verificar....
Testei o seu código e aparentemente não há nenhuma falha, tenta novamente, qualquer coisa manda um e-mail que te envio o teste que fiz pra tu verificar....
Galera Visitem:..:: Daniel Super Page ::..
#3 Zufit
Posted 25/07/2003, 19:29
Tah perfeito msm...tb teste e nda de errado aconteceu!
1 user(s) are reading this topic
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)