Okay, I am a big time beginner. I am taking a class and I have no idea what I am doing wrong. Here is my code, what have I done wrong? The first button works fine the second one doesn’t. (The code is attached too, if needed)
<!—
<html>
<head>
<title>Assignment #1</title>
<script language=”javascript”>
<!– hide from old browsers (optional)
function button1_onmouseout() {
button1.style.backgroundColor=”pink”
button1.value=”Button 1″
}
function button1_onmouseover() {
button1.style.backgroundColor=”red”
}
function button2_onmouseout() {
button2.style.backgroundColor=”yellow”
button2.value=”Button 2″
}
function button2_onmouseover() {
button2.style.backgroundColor=”green”
}
//–>
</script>
</head>
<body>
<p>
<input id=button1 name=button1 type=button value=button onmouseover=”return button1_onmouseover()”
onmouseout=”return button1_onmouseout()”>
</p>
<p>
<input id=button2 name=button2 type=button value=button onmouseover=”return button1_onmouseover()”
onmouseout=”return button1_onmouseout()”>
</p>
<p>
<b>Name:</b> Michelle
</p>
<p>
<b>Email:</b> [email][email protected]
</p>
<p>
<b>Hobbies:</b> Computers, gardening, travel, and video games
</p>
</body>
</html>
>