»
EnglishFrenchVietnamese

Print - Rating star script - JavaScriptBank.com

Full version: jsB@nk » Utility » Rating star script
URL: https://www.javascriptbank.com/rating-star-script-index.html

Rating star script © JavaScriptBank.comNeed a system to rate an item on your web page? Let's implement the simple script to do that. This script is very easy to setup and modify, you only copy all JavaScript code into your web page (should save into a file for using on many pages).

Full version: jsB@nk » Utility » Rating star script
URL: https://www.javascriptbank.com/rating-star-script-index.html



JavaScript
<SCRIPT language=JavaScript>string="<a href='http://javascriptbank.com/' style='text-decoration: none;'>JavaScriptBank.com</a>"   // string to elastic textpausetime=100; // time to elastic effect. Decrease to slow// do not modify below this linevar sizes = new Array("-8px","-4px","-2px","-1px","0px", "1px", "2px", "4px", "8px", "16px", "32px");sizes.pos = 0; function rubberBand() {  var el = document.all.elastic;  if (el.direction==null)  {el.direction = 1;}  else if ((sizes.pos > sizes.length-2) || (sizes.pos==0)) {el.direction *= -1;}  el.style.letterSpacing = sizes[sizes.pos += el.direction];  setTimeout('rubberBand()',pausetime);}rubberBand();</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<P id=elastic style="FONT-SIZE: 25px; POSITION: relative; TOP: 20px" align=center><!-- put desired text below. Replase my text.  HTML tag allowed--><A href="http://javascriptbank.com/" style="text-decoration: none;">JavaScriptBank.com</A><!-- put desired text above. Replase my text. HTML tag allowed --></P><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->