Can someone help me fix this because it only works in IE but i want it to work in FF and IE.
The code it to change the font size when you click the size you want.
The code it to change the font size when you click the size you want.
Code:
<script language="javascript" type="text/javascript">
var fontSize = new Array();
fontSize[2] = 12;
fontSize[3] = 14;
fontSize[4] = 16;
fontSize[5] = 20;
fontSize[6] = 24;
function changefontsize(whichNo)
{
document.getElementById('menu').style.fontSize=fontSize[whichNo];
}
</script>
<body id="menu">
<a href="javascript:changefontsize(2);">12</a>
<a href="javascript:changefontsize(3);">14</a>
<a href="javascript:changefontsize(4);">16</a>
<a href="javascript:changefontsize(5);">20</a>
<a href="javascript:changefontsize(6);">24</a>
</body>