corner.js

Corner.js 1.4 allows you to add corners (and also shading and shadow) to images on your webpages (alternatively: glossy.js). It uses unobtrusive javascript to keep your code clean.

It works in all the major browsers - Mozilla Firefox 1.5+, Opera 9+, IE 6+ and Safari. On older browsers, it'll degrade and your visitors won't notice a thing.

Setting Up

Download "corner.js" and include it into your webpage.

<script type="text/javascript" src="corner.js"></script>

Using It

To add corners just add a class="corner" and an additonal class like "iradius16" to the image.

Classes

Demonstration

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"

beautiful landscape

class =
"corner iradius32 ishade50 ishadow25"

class =
"corner iradius48 ishade33"

Scaled and linked

2/3 image width and height

class =
"corner iradius12
ishade50 ishadow20"

1/2 image width & height


class =
"corner iradius10
ishade66 ishadow25"

1/3 width & height


class =
"corner
iradius8
ishade75
ishadow30"

justcorners.js instead of corner.js

class =
"corners iradius32"


class =
"corners iradiae1010"


class =
"corners"

Supports "usemap"

Koblenz Wiesbaden Mainz Frankfurt Mannheim Heidelberg Würzburg Bamberg Nürnberg Karlsruhe Heilbronn Stuttgart Ulm Augsburg Baden

Karte


Why use Javascript Image Corners?

In older browsers, the script degrades and your visitors won't notice a thing.

Restrictions

Opera do not support printing of canvas.

Credits

Original idea is mine but the inspiration for the script came from reflection.js.

History

Version 1.4 Version 1.3 Version 1.2 Version 1.1 Version 1.0

License


Corner.js and justcorners.js is distributed under this LICENSE. License permits free of charge use on non-commercial and private web sites only. There is also a Commercial Software License available.

Images used are copyrighted and are used for demonstration only.

www.netzgesta.de  also visit  S5 ReloadedAJAX-FilmDBGlossy.jsInstant.jsSlided.jsFilmed.jsLoupe.js