/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function rounded_corners (selector, quantity) { var selector = $(selector); selector.css('position', 'relative'); if ( quantity == 'all' ) { selector.prepend('<div class="tl"/>'); selector.prepend('<div class="tr"/>'); selector.append('<div class="br"/>'); selector.append('<div class="bl"/>'); } }