Gracias, pero encontre uno en el buscador del foro y lo modifique un poco de nada, quedaría así:
Código javascript
:
Código PHP:
<SCRIPT type=text/javascript>
var newsfont = 16;
function changeFont(id) {
if (document.getElementById) {
document.getElementById(id).style.fontSize = newsfont+"px";
} else {
if (document.layers) {
document.layers[id].fontSize = newsfont+"px";
} else {
if (document.all) {
eval("document.all." + id + ".style.fontSize = \"" + newsfont + "px \"");
}
}
}
// esto arregla scroll al utilizar layers
// updateHeight();
setCookie();
}
// aqui se produce el error
function larger() {
if (newsfont < 20) {
newsfont= newsfont +1;
changeFont('content');
}
}
function smaller() {
if (newsfont > 10) {
newsfont= newsfont -1;
changeFont('content');
}
}
</SCRIPT>
pones luego
Código HTML:
<A onmousedown='larger()' href='javascript:void(0);'><img src='imagenes/font_add.png' ' alt='+' border='0'></A> <A onmousedown='smaller()' href='javascript:void(0);'><img src='imagenes/font_delete.png'' alt='-' border='0'></A> <a href=javascript:ventanaSecundaria('imprimir.php')><img src='imagenes/imprimir.png' alt='Imprimir' width='16' height='16' border='0' /></a>
<div id="content">Texto</div>
Podeis verlo en funcionamiento en el proyecto de mi website personal:
carlosgomezsuarez.uni.cc