87,989
社区成员
发帖
与我相关
我的任务
分享
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
<script src="js/jquery-1.4.2.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$("#rateid td").html("<img src='images/smm1.JPG'/>")
.mouseover(function() { $(this).html("<img src='images/smm2.jpg'/>"); $(this).siblings().html("<img src='images/smm2.jpg'/>"); $(this).nextAll().html("<img src='images/smm1.jpg'/>"); });
});
$(function() {
$("#rateid td").text("☆")
.mouseover(function() { $(this).text("★"); $(this).siblings().text("★"); $(this).nextAll().text("☆"); });
});
</script>
</head>
<body>
<tabel id="rateid">
<tr>
<td ></td><td></td><td></td><td></td><td></td>
</tr>
</tabel>
</body>
</html>
$(function(){$("td").text("a")});
$("#rateid td").mouseover(function() { $(this).text("★"); $(this).siblings().text("★"); $(this).nextAll().text("☆"); });