Posted June 1 '07 at 12:32 PM
Posts: 452
window.onload = function() {
var settings = {
tl: { radius: 20 },
tr: {radius: 20},
bl: false,
br: false
antiAlias: true
autoPad: false
};
var myObj = document.getElementById('WhateverObjectId');
var curvesObj = new curvyCorners(settings,myObj);
curvesObj.applyCornersToAll();
}
antiAlias.. well you could search that up in a wiki for explanation, and autoPad is this feature whereby the curvyCorners will automatically fix any problems caused by padding (if false, you cannot set padding in the object you want to have curvy corners for, or you must implement the hack manually; if true, it will automatically implement the padding hack for you)