I am trying to make a page that displays an image, and then utilizes a group of radio buttons and an apply button to perform effects on the image in the <div>
tag . It is using the show(), hide(), Toggle(), Fade In(), Fade Out(), Fade To(), Slide Down(), Slide Up(), and Slide Toggle() methods.
Here is the "shell" that I have...just not sure where to go or what to do next.
<!doctype html>
<html>
<meta charset = "utf-8">
<title>Assignment 11</title>
<head>
<script type ="text/javascript" src = "jquery-1.4.4.min.js"></script>
<script type = "text/javascript">
function showDiv(divNum)
{
$("Show"+divNum).show();
};
function hideDiv(divNum)
{
$("Hide"+divNum).hide();
};
function toggleDiv(divNum)
{
$("Toggle"+divNum).toggle();
};
function fadeInDiv(divNum)
{
$("Fade In"+divNum).fadeIn();
};
function fadeOutDiv(divNum)
{
$("Fade Out"+divNum).fadeOut();
};
function fadeToDiv(divNum)
{
$("Fade To"+divNum).fadeTo();
};
function slideDownDiv(divNum)
{
$("Slide Down"+divNum).slideDown();
};
function slideUpDiv(divNum)
{
$("Slide Up"+divNum).slideUp();
};
function slideToggleDiv(divNum)
{
$("Slide Toggle"+divNum).slideToggle();
};
function apply()
{
};
</script>
</head>
<body>
<div id="#">
<img src="linux.jpg" />
</div>
<input type = "radio" name = "choice" value = "showDiv()">Show<br/>
<input type = "radio" name = "choice" value = "hideDiv()">Hide<br/>
<input type = "radio" name = "choice" value = "toggleDiv()">Toggle<br/>
<input type = "radio" name = "choice" value = "fadeInDiv()">Fade In<br/>
<input type = "radio" name = "choice" value = "fadeOutDiv()">Fade Out<br/>
<input type = "radio" name = "choice" value = "fadeToDiv()">Fade To<br/>
<input type = "radio" name = "choice" value = "slideDownDiv()">Slide Down<br/>
<input type = "radio" name = "choice" value = "slideUpDiv()">Slide Up<br/>
<input type = "radio" name = "choice" value = "slideToggleDiv()">Slide Toggle<br/>
<button onclick = "apply()">Apply</button><br/>
</body>
</html>
Any direction on what to do next would be super helpful.