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 1589 posted 15 years ago by Xeldar
This is partial code for calling a custom foxycart shipping request.
0 1115 posted 15 years ago by webmovementllc
1 1524 posted 15 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 1623 posted 15 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 1384 posted 15 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 1631 posted 15 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 1648 posted 15 years ago by dkl3in
One bind event, multiple events. Handy.
2 1522 posted 15 years ago by Meander365
For those multiple rollovers - and their multiple flashes! The solution is to stop(!) them.
2 1360 posted 15 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 1417 posted 15 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 1499 posted 15 years ago by Meander365
Add this code to jscrollpane.js
2 1827 posted 15 years ago by rmdort
0 992 posted 15 years ago by tcelestino
1 1511 posted 15 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 1759 posted 15 years ago by Meander365
calling serverside function asynchronously
1 1415 posted 15 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 1239 posted 15 years ago by dom111
A simple script that will add captions to images and allow for easy styling.
1 1203 posted 15 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 1428 posted 15 years ago by dom111
0 1030 posted 15 years ago by jmaties
0 1147 posted 15 years ago by dkl3in
0 1139 posted 15 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 1605 posted 15 years ago by reynish
Use Collapsorz
0 1274 posted 15 years ago by davebowker
If on do nothing. If on make off. If off make on. Alter external value and focus.
0 1277 posted 15 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 1552 posted 15 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 1474 posted 15 years ago by ATLChris
1 ... 16 17 18 19 20 ... 30