scripts/jquery.rateit.js
function (score) {
                var w = score * itemdata('starwidth') * itemdata('step');
                var h = range.find('.rateit-hover');
                if (h.data('width') != w) {
                    range.find('.rateit-selected').hide();
                    h.width(w).show().data('width', w);
                    var data = [(score * itemdata('step')) + itemdata('min')];
                    item.trigger('hover', data).trigger('over', data);
                }
            }
function (score) {
                var w = score * itemdata('starwidth') * itemdata('step');
                var h = range.find('.rateit-hover');
                if (h.data('width') != w) {
                    range.find('.rateit-selected').hide();
                    h.width(w).show().data('width', w);
                    var data = [(score * itemdata('step')) + itemdata('min')];
                    item.trigger('hover', data).trigger('over', data);
                }
            }
function ( score ) { var w = score * itemdata ( 'starwidth' ) * itemdata ( 'step' ) ; var h = range . find ( '.rateit-hover' ) ; if ( h . data ( 'width' ) != w ) { range . find ( '.rateit-selected' ) . hide ( ) ; h . width ( w ) . show ( ) . data ( 'width' , w ) ; var data = [ ( score * itemdata ( 'step' ) ) + itemdata ( 'min' ) ] ; item . trigger ( 'hover' , data ) . trigger ( 'over' , data ) ; } }
sets the hover element based on the score.
sets the hover element based on the score .