Esquinas redondeadas con Prototype - Webeame Snippets


Añadir snippet

Esquinas redondeadas con Prototype

  1. <script>
  2.  
  3. var Rounded = Class.create();
  4. Rounded.prototype = {
  5. initialize : function(el){
  6. var x, el = $(el), background = el.style.backgroundColor;
  7.  
  8. for(x=0;x<11;x++){
  9. var d = "<div style='background: " + background + "; border-style: solid; border-color: white; height: 1px; overflow: hidden; border-width: 0 " + this.index[x] + "px'>&nbsp;</div>";
  10. new Insertion.Top(el, d);
  11. new Insertion.Bottom(el, d);
  12. }
  13. },
  14. index : new Array(0,1,1,1,2,2,3,4,5,7,10)
  15. }
  16.  
  17. new Rounded('blah');
  18.  
  19. </script>

En JavaScript esquinas prototype por admin hace on 30/1/08 | Comentarios

Comentarios

Logeate para comentar