Rating with images

Hi there,

I have a rating script which displays ratings as numbers: 1, 1.5, 2, 2.5 etc up to 10.

I want to display star images now instead of numbers, but up to 5 instead of 10.

This is the code I have which outputs the numbers:

if ( $(relData).attr("responses") > 10 )

                                                overallRating = Ratings.RoundToHalf( ( convenience + quality + rebook )/3 );

How would I do this? I am not good with Javascript.

Alternatively, is there a way I can replace the numbers with images, for example if the rating is 5.5 i can replace it with <img src=“5star.jpg” /> ?

Thanks!

Hi,

Is the ratings script written in JS or a server-side language?
There are a number of ways to go about acheiving what you want.
Could you post a link to a page where I can see this script in action?