mam taki skrypt:
<script language="JavaScript" type="text/javascript"> <!-- var min=8; var max=18; function increaseFontSize() { var p = document.getElementsByTagName('p'); for(i=0;i<p.length;i++) { if(p[i].style.fontSize) { var s = parseInt(p[i].style.fontSize.replace("px","")); } else { var s = 12; } if(s!=max) { s += 1; } p[i].style.fontSize = s+"px" } } function decreaseFontSize() { var p = document.getElementsByTagName('p'); for(i=0;i<p.length;i++) { if(p[i].style.fontSize) { var s = parseInt(p[i].style.fontSize.replace("px","")); } else { var s = 12; } if(s!=min) { s -= 1; } p[i].style.fontSize = s+"px" } } // --> </script> <div id="content"> <? require_once ('db_vars.php'); $query = "SELECT * FROM news ORDER BY news_id DESC"; exit; } ?> <tr><td> <?php } ?>
To jest skrypt na zmieszanie i zwieszanie czcionki chciałem go użyć w systemie newsów ale jak daje + lub - to powiększa mi on lewe menu i zmniejsza ;/
Help