I m working on making a star-voting system. There are 5 stars, those lighted up are showing the current average star voted. When you mouseover a star, lets say number 4 I wish to make the 4 from right lighten up, if you mark over 2, 2 stars should mark up from the right and so on.. if full 5 stars all stars lights up. the stars are in css classes .iconFavorite and the lighten up is .iconFavorite_hover, so my code looks like this when 3:
<div class="iconFavorite_hover"></div>
<div class="iconFavorite_hover"></div>
<div class="iconFavorite_hover"></div>
<div class="iconFavorite"></div>
<div class="iconFavorite"></div>
如果您退出retado.dk/videos.php?id=905你可以看到绿色的大星星试着用鼠标滑过它们,选定数量的星星就会亮起来。
我该怎么做?
以下是我当前没有jquery的代码:http://jsfiddle.net/8vzCC/1/