Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Navigating the DOM in jQuery is incredibly simple and thats to phpQuery you can do the same in php. Below are some examples of how it's used, the key change bing that instead of $() you use pq(), and instead of a . you used ->. Theres alot more detai...
0
1024
posted 12 years ago by FatFolderDesigner
Hides the button based on scroll position, fades in and out as necessary and upon click smoothly scrolls back to the top.
0
828
posted 12 years ago by thewickedchemist
Originally from: http://webdesignerwall.com/tutorials/css-elastic-videos
0
864
posted 12 years ago by thewickedchemist
This sorts a multi-dimensional array by one of the values in the array. Sorts in Desc order (most recent date first).
0
964
posted 12 years ago by bitsculptor
Some FB apps are longer than the 800px default FB limit and most are designed to 520px. When your content is longer than the 800px default a verticle scroll bars appears and if you have a hard-coded width in your CSS of 520px this forces a horizontal...
0
810
posted 12 years ago by the_construct
Sets the permissions for all folders to 755, and for all files 644.
Useful for SUPHP configurations which required this specific permission setup.
0
898
posted 12 years ago by axertion
Show and hide content based on whether or not a user has clicked the 'Like' button of an app.
0
789
posted 12 years ago by the_construct
Convert a form submit button code to a hyperlink code and hide the form
0
811
posted 12 years ago by pavlosvos
Usage:
<a href="http://www.whaterver-your-site-is-called.com/" rel="external">Some other site</a>
0
1017
posted 12 years ago by Krummelz
in order to avoid the .zip madness when creating a new module, you can make it available in the backend by firing a simple SQL in your DB. (mod_media is the name of the folder that holds it)
0
760
posted 12 years ago by iroybot