
25/09/2004, 07:05
|
 | Usuario no validado | | Fecha de Ingreso: mayo-2001 Ubicación: Zaragoza
Mensajes: 1.304
Antigüedad: 23 años, 10 meses Puntos: 25 | |
Hola.
A ver así:
Código:
<script>
var mostrar=false;
function inter()
{
col= (mostrar) ? '#000000' : '#9900ff';
document.getElementById('txt0').style.color=col;
mostrar = !mostrar;
int=setTimeout('inter()',500);
}
function para()
{
clearTimeout(int)
document.getElementById('txt0').style.color="#000000"
}
</script>
<p id="txt0">hola</p>
<input type="button" value="dale" onclick="inter()">
<input type="button" value="para" onclick="para()">
|