Welcome Guest [Log In] [Register]
Add Reply
Rounded Corners Javascript; Just a snippet
Topic Started: Jun 3 2009, 12:20 AM (87 Views)
creativebot
Member Avatar
Administrator
So recently I had help on ZBCode on how to fix a problem with the menu I had at top. I was using an image when of course I could have just used this javascript in the first place. ^_^

I thought I would share with you the code that the top_menu on ProZB is running on to get the rounded corners.

Code:
 
<script type="text/javascript">
$("#top").corner("10px");
</script>


You can use it on almost everything in the board for your designs.

Just edit:


  • #top | to the css your targeting
  • Change the size of the corners by adjusting the 10px


This snippet of code needs to be place "Below the Board" in the ACP>Board Template on the left sidebar (in case you didn't know ) is where you will find it.

Special thanks to rockon1824 for showing me this script and helping me fix my menu for ProZB.




Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code Chat · Next Topic »
Add Reply