Welcome To Snipplr
Everyone's Recent jQuery Snippets Tagged jquery
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Dynamically add <label> HTML tag to input description, matching the input by adding an ID value to the input.
0
658
posted 12 years ago by jbernus
Hi everyone, a while ago i posted a little script that reproduced a little animation effect seen in Windows 8 Developer Preview. I thought about expanding it some more, and in the end i started actually recreating the whole Metro interface in HTML5/C...
1
1277
posted 12 years ago by claudiowebdesign
Working on an ecommerce site I found out from our Japanese distrubutors that they don't have a decimal for the currency since yen doesn't deal in change. 1 yen is a fraction of a cent anyway!
This code looks for the Yen since within a <span></span...
0
595
posted 12 years ago by cpres
Assumes that you have got a #mainnav around your menu. Works nicely with wp_nav_menu inside.
0
601
posted 12 years ago by telltec
I tried to create a little jQuery method to notify events to the user just as in facebook.
EXAMPLE: http://claudiobonifazi.com/snippets/fb_like_notifications/
1- Link this little plugin to your page (or paste it into your files as you wish)...
0
671
posted 12 years ago by claudiowebdesign
After giving a try with the Windows 8 Developer Preview i asked myself if i could reproduce the on click effect of the metro UI in a webpage.
Sadly, for what i know at this time CSS3 3d transformations works only on webkit browsers, so this is not...
0
721
posted 12 years ago by claudiowebdesign
Add a class to every 4th item using jQuery nth-child and add class
0
638
posted 12 years ago by i-am-andy
//#########################################################################
//
// *taken from http://www.catswhocode.com/blog/mastering-html5-prefetching
//
//#########################################################################
0
878
posted 12 years ago by rydaly
jQuery
Create a dynamic \"Link to top of page\" with fade and positioned at some pixels of bottom when scrolls to this position
Changes 340px with the page footer height.
CSS:
#top_link{
position:fixed;
bottom:20px;
right:50%;
margin-right:-600px;
overflow:hidden;
text-indent:-9999px;
background:url(../img/top.png) no-repeat 0 0;
display:block;
width:5...
1
1000
posted 12 years ago by leobetosouza
This is a jQuery custom function used for clearing the default input values of input fields without having to add a class or inline javascript like onclick or onblur. Just write your input and give it a value like you normally would and then add this...
1
726
posted 12 years ago by thursday0384