Annonceindlæg fra Cornerstones
13. september 2008 - 17:18
#1
Hvor meget af det søger du? Skal det f.eks. kunne hente/gemme i din database eller er det bare JS-koden, du mangler?
13. september 2008 - 20:53
#4
Noget i denne stil måske: <script type="text/javascript"> function colorStar(img,id){ img=img.getAttribute("alt"); for(i=1;i<=5;i++) document.getElementById("star"+i+"_"+id).setAttribute("src",i<=img?"images/star_yellow.gif":"images/star_grey.gif"); } </script> <span id="rating_7910" alt="2" style="display:none"></span> <img alt="1" id="star1_7910" src="images/star_yellow.gif" onclick="window.location.href='noget.html'" onmouseover="colorStar(this,7910)" onmouseout="colorStar(document.getElementById('rating_7910'),7910)"> <img alt="2" id="star2_7910" src="images/star_yellow.gif" onclick="window.location.href='noget.html'" onmouseover="colorStar(this,7910)" onmouseout="colorStar(document.getElementById('rating_7910'),7910)"> <img alt="3" id="star3_7910" src="images/star_grey.gif" onclick="window.location.href='noget.html'" onmouseover="colorStar(this,7910)" onmouseout="colorStar(document.getElementById('rating_7910'),7910)"> <img alt="4" id="star4_7910" src="images/star_grey.gif" onclick="window.location.href='noget.html'" onmouseover="colorStar(this,7910)" onmouseout="colorStar(document.getElementById('rating_7910'),7910)"> <img alt="5" id="star5_7910" src="images/star_grey.gif" onclick="window.location.href='noget.html'" onmouseover="colorStar(this,7910)" onmouseout="colorStar(document.getElementById('rating_7910'),7910)"> <br> <span id="rating_7911" alt="3" style="display:none"></span> <img alt="1" id="star1_7911" src="images/star_yellow.gif" onclick="window.location.href='noget.html'" onmouseover="colorStar(this,7911)" onmouseout="colorStar(document.getElementById('rating_7911'),7911)"> <img alt="2" id="star2_7911" src="images/star_yellow.gif" onclick="window.location.href='noget.html'" onmouseover="colorStar(this,7911)" onmouseout="colorStar(document.getElementById('rating_7911'),7911)"> <img alt="3" id="star3_7911" src="images/star_yellow.gif" onclick="window.location.href='noget.html'" onmouseover="colorStar(this,7911)" onmouseout="colorStar(document.getElementById('rating_7911'),7911)"> <img alt="4" id="star4_7911" src="images/star_grey.gif" onclick="window.location.href='noget.html'" onmouseover="colorStar(this,7911)" onmouseout="colorStar(document.getElementById('rating_7911'),7911)"> <img alt="5" id="star5_7911" src="images/star_grey.gif" onclick="window.location.href='noget.html'" onmouseover="colorStar(this,7911)" onmouseout="colorStar(document.getElementById('rating_7911'),7911)">
21. september 2008 - 21:55
#6
Sorry, glemt at accepter. Men ja, jeg kunne bruge løsningen.