Welcome To Snipplr
Everyone's Recent Snippets Tagged jquery
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
852
posted 13 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
892
posted 13 years ago by claudiowebdesign
Add a class to every 4th item using jQuery nth-child and add class
0
810
posted 13 years ago by i-am-andy
This bit of jquery will take whatever you give it in the selector (which should be a valid jquery selector of any kind) and add or remove additional classas as appropriate based on width.
The width and style names are all determined by the last i...
0
910
posted 13 years ago by FatFolderDesigner
Developing a form where I had several date and time fields, I came with a jQuery multiselector where I need to get, through the name attribute, if it was a date or time field. So far, jQuery does not have a boolean method to check if an attribute of...
0
896
posted 13 years ago by betacar
As Google+ API was just released a couple days ago, it is time to have a posts widget for it. So, this widget was created to display your Google+ profile and slides down your recent posts with any attached images.
0
698
posted 13 years ago by mikemore
//#########################################################################
//
// *taken from http://www.catswhocode.com/blog/mastering-html5-prefetching
//
//#########################################################################
0
1051
posted 13 years ago by rydaly
This two liner is powerful. It shows you how to find images on a page based on the source (src) and replace them with another image.
0
845
posted 13 years ago by chrisaiv
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
1221
posted 13 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
917
posted 13 years ago by thursday0384