Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Ae galera beleza?
Sou muito leigo em Java Script,
catei um codigo interessante na net só que queria modificalo um pouco..
<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr onmouseover="java script:this.style.background='#FFFFFF';" onmouseout="java script:this.style.background='#66CC33';" bgcolor="#66CC33" onclick="java script:if(linha1.style.display=='block') linha1.style.display='none'; else linha1.style.display='block';" style="cursor:hand" alt="+ Detalhes">
<td><strong>Texto 01 </strong></td>
</tr>
<tr style="display:none" id="linha1">
<td>texto aqui texto aqui texto aqui texto aqui texto aqui<br/>
texto aqui texto aqui texto aqui texto aqui texto aqui<br/>
texto aqui texto aqui texto aqui texto aqui texto aqui<br/>
texto aqui texto aqui texto aqui texto aqui texto aqui<br/>
</td>
</tr>
<tr onmouseover="java script:this.style.background='#FFFFFF';" onmouseout="java script:this.style.background='#66CC33';" bgcolor="#66CC33" onclick="java script:if(linha2.style.display=='block') linha2.style.display='none'; else linha2.style.display='block';" style="cursor:hand" alt="+ Detalhes">
<td><strong>Texto 02</strong></td>
</tr>
<tr style="display:none" id="linha2">
<td>texto aqui texto aqui texto aqui texto aqui texto aqui<br/>
texto aqui texto aqui texto aqui texto aqui texto aqui<br/>
texto aqui texto aqui texto aqui texto aqui texto aqui<br/>
texto aqui texto aqui texto aqui texto aqui texto aqui<br/>
</td>
</tr>
</table>
ai o que eu gostaria de alterar seria o seguinte:
teria como fazer isto?
Obrigado.
Carregando comentários...