javascript - jQuery/css: selected amount of stars to light up -


i'm working on making star-voting system. there 5 stars, lighted showing current average star voted. when mouseover star, lets number 4 wish make 4 right lighten up, if mark on 2, 2 stars should mark right , on.. if full 5 stars stars lights up. stars in css classes .iconfavorite , lighten .iconfavorite_hover, code looks 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> 

if check out retardo.dk/videos.php?id=905 can see big green stars try mouseover them, selected amount of stars light up.

how can this?

here's jsfiddle of current code no jquery: http://jsfiddle.net/8vzcc/1/

does work? http://jsfiddle.net/8vzcc/33/ removes after :) should work!

edit: new version, should work want work :)


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -