I want to be able to get the font size to change when you click on the different sized letters that are on the right. How do I go about commanding the site to do that using javascript? Here is the code I have so far:
<!DOCTYPE html>
<html>
<head>
<body>
<div>
<font size="2"><a href="javascript:void(0);" onclick="changemysize(16);">A</a></font>
<font size="4"><a href="javascript:void(0);" onclick="changemysize(20);">A</a></font>
<font size="5"><a href="javascript:void(0);" onclick="changemysize(25);">A</a></font>
</div>
<div id="callout" class="medium">
<ul id="controls">
<li id="small">A</li>
<li id="medium">A</li>
<li id="large">A</li>
</ul>
<div id="mymain">
<h1>Header</h1>
<h2>Subheader</h2>
<p>Lorem ipsum dolor sit amet, pri ne periculis definiebas, habeo gloriatur has id. Ius ad ubique animal, eum recteque electram explicari no, sed in nostrum adipiscing. Lorem ipsum dolor sit amet, pri ne periculis definiebas, habeo gloriatur has id.</p>
</div>
</div>
<p style="margin-top: 100px; text-align: center; font-size: 75%;"><a href="../resize.zip">Download the files (resize.zip)</a>
</p>
<script src="resize.js"></script>
</body>
</head>
</html>
Javascript:
function changemysize(myvalue) {
var div = document.getElementById("mymain");
div.style.fontSize = myvalue + "px";
}