Welcome To Snipplr


Everyone's Recent jQuery Snippets



1 ... 16 17 18 19 20 ... 30
From http://snipplr.com/view/41051/jscrollpane-ipadiphoneipodios-scoll-support/ here the part of code to add in jScrollPane.js for android,iphone,ipod,ipad support. Add this after :if (isScrollable) { (around line 165)
3 921 posted 14 years ago by Xeldar
This is partial code for calling a custom foxycart shipping request.
0 585 posted 14 years ago by webmovementllc
1 888 posted 14 years ago by xz
Another handy one and one which I see quite often. You rollover an element and it animates. You then mouseover and mouseleave really quickly, multiple times and all the animations gets queued. This solves that problem. The delay(200) is like adding...
1 901 posted 14 years ago by Meander365
Handy. Hide an element as soon as possible, before document.ready. The element gets hidden but only when a class is applied to the html via js.
1 778 posted 14 years ago by Meander365
I can see this being useful for when you want to pass a lot of associated data to an event handler from elements and their chosen trigger action.
1 885 posted 14 years ago by Meander365
Alternative for "return false;" stopPropagation(); prevents for bubbling up the dom preventDefault(); prevents the browser from performing the default action
1 876 posted 14 years ago by dkl3in
One bind event, multiple events. Handy.
2 813 posted 14 years ago by Meander365
For those multiple rollovers - and their multiple flashes! The solution is to stop(!) them.
2 782 posted 14 years ago by Meander365
Dave Metvin\'s method. Two tricks to the method:\r\n\r\n$($boxes[div++] || []) - increaments \"div\" and passes an empty array if the element doesnt exist (so it exists).\r\n\r\narguments.callee - the name of the function currently being executed.
1 782 posted 14 years ago by Meander365
When you load content into a jquery ui dialog box which contains a textarea element that you use FCKeditor on. The second time you open the dialog, FCKeditor fails to load. You have to destroy it when you close the dialog box.
0 874 posted 14 years ago by Meander365
Add this code to jscrollpane.js
2 1197 posted 14 years ago by rmdort
0 539 posted 14 years ago by tcelestino
1 841 posted 14 years ago by arif
This is dead handy. The purpose of the custom filter is to select all elements which have data attached. You can even find specific data.
1 1005 posted 14 years ago by Meander365
calling serverside function asynchronously
1 771 posted 14 years ago by hairajeshk
I’ve seen some very cool parallax effect around lately, especially liking the Silverback site. But none of them are particularly interactive, so I thought I’d make a small implementation of the Parallax effect that interacts with the mouse. Ve...
1 699 posted 14 years ago by dom111
A simple script that will add captions to images and allow for easy styling.
1 645 posted 14 years ago by dom111
So recently I was asked to change a navigation style of an existing site to drop-down menus. Simple, I thought, just use one of the many existing drop-down plugins. I tried many, but most seemed to use hardcoded styles and I had a few problems (so...
0 861 posted 14 years ago by dom111
0 562 posted 14 years ago by jmaties
0 625 posted 14 years ago by dkl3in
0 599 posted 14 years ago by paulstraw
I wrote this from scratch :) Basically I wanted a DIV to scroll with the window but it's not visible to begin with on the page. So this does it when the user scrolls past the beginning of that element.
1 835 posted 14 years ago by reynish
Use Collapsorz
0 665 posted 14 years ago by davebowker
If on do nothing. If on make off. If off make on. Alter external value and focus.
0 760 posted 14 years ago by davebowker
There are many ways to have jQuery open external links for you. Some depend on relative URL\'s for internal links and absolute URL\'s for external links. Some analyze the link to see if it matches your domain. These are great but can sometimes be con...
0 781 posted 14 years ago by scribbleitdesigns
This is just a basic example of how you would allow navigation via left/right arrow keys. This is most commonly used when navigating multiple-image image galleries.
1 684 posted 14 years ago by ATLChris
1 ... 16 17 18 19 20 ... 30