Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This snippet will create an array of all images in a directory and sub-directories and display them randomly.
4
3795
posted 15 years ago by superuntitled
An ActionScript3 video player placed on the stage, configurable by FlashVars. It displays a spinning loader until the video loads.
Also see http://snipplr.com/view/11606/ for another AS3 video code template
Read about AS3 video in this in-depth t...
0
1149
posted 15 years ago by Winkyboy
Drupal FiveStar change any of the settings as necessary to create a completely customized widget, regardless of the node type settings.
1
911
posted 15 years ago by humanoid
Quick function to send out decent-looking (but simple) html emails.
2
1233
posted 15 years ago by fuzzylogic
Manipulates XML nodes using PHP's Dom library. Includes XPath navigation, child manipulation, and deletion of current document.
0
888
posted 15 years ago by mikeevans
Returns only the directory path to the current file — no host or filename, just URI directory structure.
1
889
posted 15 years ago by radarseven
In Magento administration, go to System > Configuration.
After choice Developer at the bottom of the page.
In Prototype Deprecation Log switch to no.
0
709
posted 15 years ago by nico65
Include file that contains the array of areacodes and states. **This file is needed for the Areacode Script to work. Script here: http://snipplr.com/view/17339/area-code-lookup-script/
2
840
posted 15 years ago by arnoldb
This simple script will return what state an areacode belongs to. Be sure to get the include file that contains the array here: http://snipplr.com/view/17340/area-code-lookup-script--include-file/
1
956
posted 15 years ago by arnoldb
returns URL that's an I'm feeling lucky search on wikipedia. Handy when paired with a database of names of things.
2
836
posted 15 years ago by mocha0range
This snippet is useful if you want to extract the relevant parts out of an Date header field of an email message. It was created according to the [RFC 5322 rules](http://tools.ietf.org/html/rfc5322#page-15 "RFC 5322, Page 15"). It supports named capt...
1
1058
posted 15 years ago by dreadwarrior
Runtime Object Evaluator; search for string object properties that start with !! and eval the content.
Very useful if you want to load JSON from file and evaluate its fields on effective usage or access global variables at runtime.
[Follow me on T...
1
722
posted 15 years ago by straps
function as jquery plugin to test if selector is found on the current page. Sample use:
if ( $("#myID").onpage() ) { $("#myID img").click(function(){ //do this..here.. });
0
1014
posted 15 years ago by pixelhandler