suebriquet

rounded corners js

May 25th, 2012
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!--[if lt IE 9]>
  2. <script type="text/JavaScript" src="http://www.curvycorners.net/includes/curvycorners.js"></script>
  3. <style type="text/css">
  4. .button {
  5.     border: solid 1px #980c10;
  6.     background: #d81b21;
  7. }
  8. a:hover .button {
  9. background: #b61318;
  10. }
  11.  
  12. </style>
  13. <script type="text/JavaScript">
  14.   window.onload = function() {
  15.     var settings = {
  16.       tl: { radius: 8 },
  17.       tr: { radius: 8 },
  18.       bl: { radius: 8 },
  19.       br: { radius: 8 },
  20.       antiAlias: true
  21.     }
  22.     curvyCorners(settings, '.button');
  23.   }
  24. </script>
  25. <![endif]-->
Advertisement
Add Comment
Please, Sign In to add comment