Download bevel.js and include it into your webpage.
<script type="text/javascript" src="bevel.js"></script>
To add bevels just add a class="bevel" to the image.
If you want flexibility, use "cvi_bevel_lib.js" instead of "bevel.js". You can make your images respond to user actions (e.g. changing one or more options when the image is hovered over).
cvi_bevel.defaultRadius = 20; //INT 20-40 (%)
cvi_bevel.defaultGlow = 33; //INT 1-100 (% opacity)
cvi_bevel.defaultShine = 40; //INT 1-100 (% opacity)
cvi_bevel.defaultShade = 50; //INT 1-100 (% opacity)
cvi_bevel.defaultGlowcolor = '#000000'; //STR '#000000'-'#ffffff'
cvi_bevel.defaultShinecolor = '#ffffff'; //STR '#000000'-'#ffffff'
cvi_bevel.defaultShadecolor = '#000000'; //STR '#000000'-'#ffffff'
cvi_bevel.defaultBackcolor = '#0080ff'; //STR '#000000'-'#ffffff'
cvi_bevel.defaultFillcolor = '#0080ff'; //STR '#000000'-'#ffffff'
cvi_bevel.defaultLinear = false; //BOOLEAN
cvi_bevel.defaultUsemask = false; //BOOLEAN
cvi_bevel.defaultNoglow = false; //BOOLEAN
cvi_bevel.defaultNoshine = false; //BOOLEAN
cvi_bevel.defaultNoshade = false; //BOOLEAN
cvi_bevel.add(image, options);cvi_bevel.add(document.getElementById("myimg"), { shine: 75, shade: 10 });
cvi_bevel.modify(image, options);cvi_bevel.modify(document.getElementById("myimg"), { radius: 50 });
cvi_bevel.remove(image);
In older browsers, the script degrades and your visitors won't notice a thing.
Please read the License before you download bevel.js 1.2
Please read the Frequently Asked Questions before you contact the author.
Version 1.2
Please leave any comments at this contact formular.
bevel.js and cvi_bevel_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.