Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
In this tutorial we are going to use the :before pseudo-element to create a 3D style box. This effect will not work in Internet Explorer since it does not support the :before attribute. IE users will only see the element's themselves, and nothing els...
0
1566
posted 17 years ago by myrebel420
Here is a small function that I use to update records in a database.
It coincides with the insertFromPost function that I have posted earlier.
The element names in the form need to have the same name as in the DB and the field names should all...
1
2087
posted 17 years ago by brownrl
Simplifies a button to use only one function for URL navigation.
1
1506
posted 17 years ago by MacEvelly
Rather than hard-coding values shared between classes/methods/servlets, it's good to use content params in web.xml.
0
1713
posted 17 years ago by sunkist
This snippet will create an array of all images in a directory and sub-directories and display them randomly.
4
5546
posted 17 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
2243
posted 17 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
1696
posted 17 years ago by humanoid
Quick function to send out decent-looking (but simple) html emails.
2
2104
posted 17 years ago by fuzzylogic
Manipulates XML nodes using PHP's Dom library. Includes XPath navigation, child manipulation, and deletion of current document.
0
1690
posted 17 years ago by mikeevans
Returns only the directory path to the current file — no host or filename, just URI directory structure.
1
2001
posted 17 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
1442
posted 17 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
1636
posted 17 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
1821
posted 17 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
1669
posted 17 years ago by mocha0range