i wanted to ask how to create font increasing with only 1 button and 3 levels. For example i need only 12,13,14px and it's going all around.
I tried something like this, but this is not what i'm looking for cause it does have 3 buttons.
<script type="text/javascript">
$(document).ready(function() {
$('#incfont').click(function(){
curSize= parseInt($('#content').css('font-size')) + 2;
if(curSize<=20)
$('#content').css('font-size', curSize);
});
$('#decfont').click(function(){
curSize= parseInt($('#content').css('font-size')) - 2;
if(curSize>=12)
$('#content').css('font-size', curSize);
});
});
</script>