Hi,
What's the code to display rating whit image,
I trying this code:
<%if Rating > 9%>
<img src="<%build_root_url%>/img/18.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 8%>
<img src="<%build_root_url%>//img/16.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 7%>
<img src="<%build_root_url%>/img/14.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 6%>
<img src="<%build_root_url%>/img/12.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 5%>
<img src="<%build_root_url%>/img/10.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 4%>
<img src="<%build_root_url%>/img/8.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 3%>
<img src="<%build_root_url%>/img/6.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 2%>
<img src="<%build_root_url%>/img/4.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 1%>
<img src="<%build_root_url%>/img/2.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 0%>
<img src="<%build_root_url%>/img/1.gif" alt="<%Votes%>">
<%endif%>
But, when i run it
If the vote= 8, he display all the image above
image for rating 7
image for rating 6
...
Can't you tell me what's the solution
Tnank you
What's the code to display rating whit image,
I trying this code:
<%if Rating > 9%>
<img src="<%build_root_url%>/img/18.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 8%>
<img src="<%build_root_url%>//img/16.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 7%>
<img src="<%build_root_url%>/img/14.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 6%>
<img src="<%build_root_url%>/img/12.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 5%>
<img src="<%build_root_url%>/img/10.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 4%>
<img src="<%build_root_url%>/img/8.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 3%>
<img src="<%build_root_url%>/img/6.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 2%>
<img src="<%build_root_url%>/img/4.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 1%>
<img src="<%build_root_url%>/img/2.gif" alt="<%Votes%>">
<%endif%>
<%if Rating > 0%>
<img src="<%build_root_url%>/img/1.gif" alt="<%Votes%>">
<%endif%>
But, when i run it
If the vote= 8, he display all the image above
image for rating 7
image for rating 6
...
Can't you tell me what's the solution
Tnank you