paulmo Posted December 29, 2008 Share Posted December 29, 2008 trying out a rounded corners plug in http://www.atblabs.com/jquery.corners.html and it's not working. have uploaded all js files to root but unsure how to set this up in html page. thanks! <script type="text/javascript" src="jquery-1.2.6.min.js"></script> <script type="text/javascript" src="jquery.corners.js"></script> <script type="text/javascript"> <div style="background-color:#acc; padding:10px" class="rounded {10px}"> class="rounded {10px}" </div> <script>$(document).ready( function(){ $('.rounded').corners("4px"); });</script> Quote Link to comment Share on other sites More sharing options...
rhodesa Posted December 29, 2008 Share Posted December 29, 2008 you have 1 too many script tags. try this: <script type="text/javascript" src="jquery-1.2.6.min.js"></script> <script type="text/javascript" src="jquery.corners.js"></script> <div style="background-color:#acc; padding:10px" class="rounded {10px}"> class="rounded {10px}" </div> <script type="text/javascript"> $(document).ready( function(){ $('.rounded').corners("4px"); }); </script> Quote Link to comment Share on other sites More sharing options...
paulmo Posted December 29, 2008 Author Share Posted December 29, 2008 thank you aaron! it's working great around div's where there's no php code, and on a page where there's php code, the only way the rounded corners code is working is to put the <script> and function parts of the code around a div that contains no php. then, in the div's with php, i'm still putting the <div style> code. this page takes longer to execute, so that i'm seeing square corners for about half a second before they get rounded. so it's working on a php page, just not real efficiently. any advice? thanks Quote Link to comment Share on other sites More sharing options...
rhodesa Posted December 30, 2008 Share Posted December 30, 2008 rounded corners are always a hassle. can you post some code where it isn't working so i can test it? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.