script src http ajax googleapis com ajax libs jquery jquery min js typ

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<style>
.hover {
background-color:#bbb;
cursor: pointer;
}
</style>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('table tr').mouseover(function(){
$(this).addClass('hover');
}).mouseout(function(){
$(this).removeClass('hover');
});
$("table tr").click(function () {
location.href=$('a',this).attr('href');
});
});
</script>