martes, 17 de mayo de 2011

Mega Web Buttons Pack #1

Mega Web Buttons Pack #1: "

View demoDownload source
Today we want to share our first set of easy-to-implement buttons called ‘Mega Web Buttons Pack’. In this set you will find 42 buttons which you can use easily on your website. We are using the WooFunction icon set released under the GNU General Public License.
Our first step is to add the following line of jQuery:
$('.btn').append($('<span />').addClass('helper'));
This means that we will create a new ‘span’ element which is the holder for the button icon.
If, for example, you want to add the ‘Chart’ button you need to add markup to your website:
<a href="#" class="btn chart">Chart</a>
or the ‘Search’ button:
<a href="#" class="btn search">Search</a>
In the CSS you can change the looks by, for example, changing the background color:
.btn.green {
background:#2DA10C;
}
and markup will be:
Search
etc. :)
We hope you like our experiment. Let us know which icon set you would like to see wrapped up like this in the future.
Share and Enjoy:Diggdel.icio.usFacebookLinkedInRedditRSSTwitterGoogle BookmarksStumbleUponTechnoratiDZoneemailblogmarksDesign FloatDiigoFriendFeedGoogle BuzzIdenti.caMisterWongNewsVinePing.fmPlurkPosterousSlashdotSuggest to Techmeme via TwitterTumblr

"

No hay comentarios:

Publicar un comentario