mouseover change the picture?
Hi
This is my code I want to set the mouseover and change the color when the mouse goes over td with id="change" but it is nit going to work?! why is that? Also coudl you please help me how I can use jquery to change the picture od td with id"pichcnage" to 2.bmp by mouse over?
thanks
- <html>
- <head>
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
- <style>
- table,th,td{
- border: 1px solid black;
- }
- tr.nice td{
- backgroud:#1F44GG;
- }
- </style>
- </head>
- <body>
- <script type="text/javascript">
- $("document").ready(function(){
- $("#change").mouseover(function () {$this.addClass("nice"):} ;
- });
- </script>
-
- <div id="numbers">
- <table>
- <tr>
- <td id="change" >Name1</td>
- <td id="pichange"><a><img src="c:\1.bmp"</a></td>
- </tr>
- <tr>
- <td>Name2</td>
- <td><a><img src="c:\1.bmp"</a></td>
- </tr>
- <tr>
- <td>Name3</td>
- <td><a><img src="c:\1.bmp"</a></td>
- </tr>
- </table>
- <div>
- </body>
- <html>