星级评分2
<body>
<div id="stars1">
<li><a star:value="100" href="#">100</a></li>
<li><a star:value="200" href="#">200</a></li>
<li><a star:value="300" href="#">300</a></li>
<li><a star:value="400" href="#">400</a></li>
<li><a star:value="500" href="#">500</a></li>
</ul>
<span id="stars1-tips"></span>
<input type="hidden" id="stars1-input" name="a" value="" size="2" />
</div>
<!--
# 星级评分
# star:value = 分数
-->
<div id="stars2">
<li><a star:value="1" href="#">1</a></li>
<li><a star:value="2" href="#">2</a></li>
<li><a star:value="3" href="#">3</a></li>
<li><a star:value="4" href="#">4</a></li>
<li><a star:value="5" href="#">5</a></li>
</ul>
<span id="stars2-tips"></span>
<input type="hidden" id="stars2-input" name="b" value="" size="2" />
</div>
<!-- END 星级评分 -->
<input type="button" value="test" onclick="teststars()" />
<script type="text/javascript">
var Class = {
create: function() {
return function() { this.initialize.apply(this, arguments); }
}
}
var Extend = function(destination, source) {
for (var property in source) {
destination[property] = source[property];
}
}
function stopDefault( e ) {
if ( e && e.preventDefault ){
e.preventDefault();
}else{
window.event.returnValue = false;
}
return false;
}