window.onload = function() { /* The new 'validTags' setting is optional and allows you to specify other HTML elements that curvyCorners can attempt to round. The value is comma separated list of html elements in lowercase. validTags: ["div", "form"] The above example would enable curvyCorners on FORM elements. */ settings = { tl: { radius: 10 }, tr: { radius: 10 }, bl: { radius: 10 }, br: { radius: 10 }, antiAlias: true, autoPad: true, validTags: ["div"] } /* Usage: newCornersObj = new curvyCorners(settingsObj, classNameStr); newCornersObj = new curvyCorners(settingsObj, divObj1[, divObj2[, divObj3[, . . . [, divObjN]]]]); */ var myBoxObject = new curvyCorners(settings, "round"); myBoxObject.applyCornersToAll(); }