airbus Posted July 18, 2009 Report Share Posted July 18, 2009 Sveiki kāds varētu iedot scriptu kas rada uz kadas atzimes uzspieda. Piemeram uzspieda uz 5/5 un auksa paradas Tava atzime ir 5/5 Rekur tas zvaigznes uz kuram jaspiez: <ul class='star-rating' style='width: 125px;'><li name='rate' class='current-rating' style='width: 0%;'>0/5</li><li name='rate' class='star'><a href='#1' title='1/5' style='width: 20%; z-index: 6;'>1</a></li><li name='rate' class='star'><a href='#2' title='2/5' style='width: 40%; z-index: 5;'>2</a></li><li name='rate' class='star'><a href='#3' title='3/5' style='width: 60%; z-index: 4;'>3</a></li><li name='rate' class='star'><a href='#4' title='4/5' style='width: 80%; z-index: 3;'>4</a></li><li name='rate' class='star'><a href='#5' title='5/5' style='width: 100%; z-index: 2;'>5</a></li></ul> Quote Link to comment Share on other sites More sharing options...
marcis Posted July 18, 2009 Report Share Posted July 18, 2009 <a href="#5" title="5/5" style="width: 100%; z-index: 2;" onclick="document.getElementById('atzime').innerHTML=this.title;">5</a> Quote Link to comment Share on other sites More sharing options...
airbus Posted July 18, 2009 Author Report Share Posted July 18, 2009 Spiedu uz ciparu 5 neka Quote Link to comment Share on other sites More sharing options...
renathy Posted July 19, 2009 Report Share Posted July 19, 2009 <ul class='star-rating' style='width: 125px;'> <li id='atzime' name='rate' class='current-rating' style='width: 0%;'>0/5</li> <li name='rate' class='star'><a href='#1' title='1/5' style='width: 20%; z-index: 6;' onclick="document.getElementById('atzime').innerHTML=this.title;">1</a></li> ... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.