Shows some of the things corner.js does.

class = "corner"

class = "corner ishade50"

class = "corner ishadow20"

class = "corner ishade50 ishadow20"

class = "corner ishadow40 inverse"

class = "corner iradius16"

class =
"corner iradius24 ishadow33 inverse"

class =
"corner iradius20 ishadow33"

class =
"corner iradius8 ishade75 ishadow33"

class =
"corner iradius16 ishade66 ishadow30"

class =
"corner iradius32 ishade50 ishadow25"

class =
"corner iradius48 ishade33"

class =
"corners iradius32"

class =
"corners iradiae1010"

class =
"corners iborder1 icolorffffff"

Images used are copyrighted and are used for demonstration only.
Download corner.js and include it into your webpage.
<script type="text/javascript" src="corner.js"></script>
To add corners just add a class="corner" and an additonal class like "iradius16" to the image.
If you want flexibility, use "cvi_corner_lib.js" instead of "corner.js". You can make your images respond to user actions (e.g. changing one or more options when the image is hovered over).
cvi_corner.defaultRadius = 0; //INT 0-100 (px)
cvi_corner.defaultShadow = 0; //INT 0-100 (% opacity)
cvi_corner.defaultShade = 0; //INT 0-100 (% opacity)
cvi_corner.defaultInverse = false; //BOOLEAN
cvi_corner.add(image, options);cvi_corner.add(document.getElementById("myimg"), { shadow: 75, shade: 0 });
cvi_corner.modify(image, options);cvi_corner.modify(document.getElementById("myimg"), { radius: 50 });
cvi_corner.remove(image);
Alternatively use "cvi_corners_lib.js" instead of "justcorners.js".
cvi_corners.defaultXradius = 16; //INT 0-100 (px)
cvi_corners.defaultYradius = 0; //INT 0-100 (px)
cvi_corners.defaultCorners = "1111"; //STR "0000"-"1111" [top left|top right|bottom left|bottom right]
cvi_corners.defaultBorder = 0; //INT 0-100 (px borderwidth)
cvi_corners.defaultColor = "#0000ff"; //STR "#000000"-"#ffffff" bordercolor
cvi_corners.defaultOpacity = 100; //INT 0-100 (% borderopacity)
cvi_corners.add(image, options);cvi_corners.add(document.getElementById("myimg"), { corners: "1010" });
cvi_corners.modify(image, options);cvi_corners.modify(document.getElementById("myimg"), { xradius: 20, yradius: 10 });
cvi_corners.remove(image);
In older browsers, the script degrades and your visitors won't notice a thing.
Please read the License before you download corner.js 1.7
Please read the Frequently Asked Questions before you contact the author.
Version 1.7
Please leave any comments at this contact formular.
Original idea is mine but the inspiration for the script came from reflection.js.
corner.js, justcorners.js and cvi_corner_lib.js, cvi_corners_lib.js are distributed under the Netzgestade Non-commercial Software License Agreement.
License permits free of charge use on non-commercial and private web sites only under special conditions (as described in the license).
This license equals neither "open source" nor "public domain".
There are also Commercial Software Licenses available.