This thing does not work in Safari & Google Chrome.
You need to include jquery.js in your page. Don't forget to have a separate closing tag.
<script type="text/javascript" src="jquery.js"></script>
You need to include the jQuery Corner Plugin JavaScript file (jquery.corner.js) in your page as well.
<script type="text/javascript" src="jquery.corner.js"></script>
Somewhere in your page you should have the <div>
you want to have corners:
<div id="divToHaveCorners" style="width: 200px; height: 100px; background-color: #701080;">Hello World!</div>
Somewhere else in your page, preferably not before the div itself, issue the following JavaScript command. This will execute the inner function when the page is loaded and is ready to be manipulated.
<script type="text/javascript">$(function() { $('#divToHaveCorners').corner(); } );</script>
You're done! If not, let me know.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…