im trying to do a mouse over and a onclick swap imag and i cant seem to get the code right and working
here is my html code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>assignment 2 cis 154</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="jsfile.js" rel="stylesheet" type="text/javascript" />
<script src="jsfile"></script>
<script>
$(document).ready(function(){
}); //end ready
</script>
</head>
<body>
<h1 onclick="imgover">Greatest Movies Of All Time</h1>
<p id="image"><img src="Images/superman_super.jpg" width="281" height="140" alt="superman shield" name="superman_super" />
</p>
<br />
<br />
<ul id="movielist">
<li><a href="http://www.imdb.com/title/tt0078346/" title="Superman IMDB" target="_blank">Superman Trilogy</a></li>
<li><a href="http://www.imdb.com/title/tt0076759/" title="Star Wars IMDB" target="_blank">Star Wars Trilogy</a></li>
<li><a href="http://www.imdb.com/title/tt1119646/" title="Hangover IMDB" target="_blank">HangOver</a></li>
</ul>
<br />
<br />
<p id="moviesum">
<strong>Superman:</strong><br />
An alien orphan is sent from his dying planet to Earth, where he grows up to become his adoptive home's first and greatest super-hero.
<br />
<br />
<strong>Star Wars:</strong><br />
Two Jedi Knights escape a hostile blockade to find allies and come across a young boy who may bring balance to the Force, but the long dormant Sith resurface to reclaim their old glory. Ten years later, Anakin Skywalker shares a forbidden romance with Padmé, while Obi-Wan investigates an assassination attempt on the Princess and discovers a secret clone army crafted for the Jedi. After three years of fighting in the Clone Wars, Anakin Skywalker falls prey to the Sith Lord's lies and makes an enemy of the Jedi and those he loves, concluding his journey to the Dark Side. Luke Skywalker, a spirited farm boy, joins rebel forces to save Princess Leia from the evil Darth Vader, and the galaxy from the Empire's planet-destroying Death Star.
<br />
<br />
<strong>HangOver:</strong><br />
A Las Vegas-set comedy centered around three groomsmen who lose their about-to-be-wed buddy during their drunken misadventures, then must retrace their steps in order to find him.
<br />
</p>
</body>
</html>
here is my javascript
// JavaScript Document
$(document).ready(function(){
$("#movielist").onmouseover(function(){
$(this).css("background-color","#000000");
}); //end mouseover
$("#movielist").onmouseout(function(){
$(this).css("background-color","#ffffff");
}); // end mouseout
$("#moviesum").mouseover(function(){
$("#moviesum#").css("color","#000000");
}); // end mouseover
$("moviesum").mouseout(function(){
$("#moviesum").css("background-color","#ffffff");
}); // end mouseout
}); //end ready
// click on <h1> load image try 1
superman_super = new Image()
superman_super.src = "superman_super.jpeg"
onClick="javascript:void(document.River = superman_super.src)"
// click on <h1> load image try 2
superman_super = "on.jpeg"
starwars = "off.jpeg"
function imgover(superman_super){
superman_super.src = superman_super
}
function imgout(starwars){
starwars.src = starwars
}
and thoughs of whats wrong is it my <link> or is it the jsfile that is wrong