Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Use by inserting the following in the head.
<script>
$(document).ready(function() {
$("input").toggleVal();
});
</script>
0
1270
posted 16 years ago by davebowker
remove(array) --> array
Array.remove(a) simply removes all the items in the passed in array from the current scope array. Good for bulk operations.
0
1012
posted 16 years ago by kouphax
A bash script that calls Drush for all your multisite sites and returns a list of available and installed modules for each site.
2
1133
posted 16 years ago by berkes
this is a combination of javascript and css and an image called letters.jpg that allows you to use any font you want for the first letter of each paragraph. Letters.jpg needs to have all the letters in uppercase in a row. See the link for a sample le...
0
888
posted 16 years ago by ezerick
Because onDragOver in AS2 doesn't really work, here is some script for actually detecting whether the mouse button is held down when rolling over something. NOTE that for ideal usage, you will have to write some actual collision detection between th...
0
926
posted 16 years ago by Winkyboy
setting additional css file for browsers under MacOS with JQuery
0
969
posted 16 years ago by DesTincT
`lookupd` doens't exist in Leopard, instead `dscacheutil` should be used.
2
1393
posted 16 years ago by rastersize
You can find a string as an array row value.
Ex:
arr=['abcde','mdleo']
arr.find('dbd') -> array['abcde']
arr.find('akdowewo') -> array[] (empty)
0
1196
posted 16 years ago by tonic