Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/08/2003, 04:07
Elig
 
Fecha de Ingreso: noviembre-2002
Ubicación: Elche
Mensajes: 548
Antigüedad: 22 años, 3 meses
Puntos: 0
var fuente =12

function aumentar(){
fuente = fuente + 1
if (fuente > 20)
{
fuente=20
}
aumento_fuente = fuente+"px"
document.getElementById("Tu_id").style.fontSize=au mento_fuente
}

function disminuir(){
fuente = fuente - 1
if (fuente > 8)
{
fuente=8
}
disminuir_fuente = fuente+"px"
document.getElementById("Tu_id").style.fontSize=di sminuir_fuente
}





<p id="Tu_id" style="font-size:12px;" >aquí viene la parrafada...kdfaasdfjasjkfhkashfjkaf</p>

<img src="lupa_mas.gif" onclick="aumentar()">

<img src="lupa_menos.gif" onclick="disminuir()">


No lo he probado, pero salvo error u omisión esto funcina.

Pruebalo y me dices