Posted By

joe-bbb on 10/29/09


Tagged


Versions (?)

rounded corners


 / Published in: JavaScript
 

  1. function rounded_corners (selector, quantity) {
  2. var selector = $(selector);
  3. selector.css('position', 'relative');
  4. if ( quantity == 'all' ) {
  5. selector.prepend('<div class="tl"/>');
  6. selector.prepend('<div class="tr"/>');
  7. selector.append('<div class="br"/>');
  8. selector.append('<div class="bl"/>');
  9. }
  10. }

Report this snippet  

You need to login to post a comment.