[thelist] rating break downs
Brian Cummiskey
brian at hondaswap.com
Thu Jun 7 15:49:26 CDT 2007
Hi all,
perhaps this is not so much a technical issue as it is a "best practice"
issue.
I've developed a reviews system which allows a 1-5 rating, and an
overall average rating, based on half points.
What is your idea of the best split for the average, in representation
via the "stars" graphic? Should i round up? down? median?
I'm currently using:
If avgrating < .4 Then
response.write "<img
src=""grafx/stars_zero.gif"" alt=""zero out of five"" /> "
End If
If avgrating > .39 And avgrating < .6 Then
response.write "<img
src=""grafx/stars_half.gif"" alt=""one half out of five"" /> "
End If
If avgrating > .59 And avgrating < 1.1 Then
response.write "<img
src=""grafx/stars_one.gif"" alt=""one out of five"" /> "
End If
If avgrating > 1.09 And avgrating < 1.6 Then
response.write "<img
src=""grafx/stars_one_half.gif"" alt=""one and a half out of five""
/> "
End If
If avgrating > 1.59 And avgrating < 2 Then
response.write "<img
src=""grafx/stars_two.gif"" alt=""two out of five"" /> "
End If
If avgrating > 2.01 And avgrating < 2.6 Then
response.write "<img
src=""grafx/stars_two_half.gif"" alt=""two and a half out of five""
/> "
End If
If avgrating > 2.59 And avgrating < 3 Then
response.write "<img
src=""grafx/stars_three.gif"" alt=""three out of five"" /> "
End If
If avgrating > 3.01 And avgrating < 3.6 Then
response.write "<img
src=""grafx/stars_three_half.gif"" alt=""three and a half out of five""
/> "
End If
If avgrating > 3.59 And avgrating < 4 Then
response.write "<img
src=""grafx/stars_four.gif"" alt=""four out of five"" /> "
End If
If avgrating > 4.01 And avgrating < 4.6 Then
response.write "<img
src=""grafx/stars_four_half.gif"" alt=""four and a half out of five""
/> "
End If
If avgrating > 4.59 Then
response.write "<img
src=""grafx/stars_five.gif"" alt=""five out of five"" /> "
End If
but i'm not sure if my ranges are ideal to represent an accurate rating.
ie, a product with 3.6666667 shows currently as 4 stars and a 1.1 shows
as 1 1/2 stars.
Thoughts?
More information about the thelist
mailing list