Welcome To Snipplr


Everyone's Recent Snippets



1 ... 283 284 285 286 287 ... 554
like array_search but compares against a specific key in each element of the array
2 1202 posted 15 years ago by iloveitaly
This code goes into the index.php
1 900 posted 15 years ago by gera3d
2 987 posted 15 years ago by Jamie
Just add this delegate method to enable the row delete.
2 1239 posted 15 years ago by rabc
HTML5 geolocation using the new HTML5 geolocation API, JavaScript and Google Maps. HTML5 geolocation detection is included. This will work in almost every modern browser except IE, but if your browser does not support it, it will tell you so. It will...
3 1430 posted 15 years ago by jonkemp
Delete the files in Documents folder if it's not a sqlite file.
5 1645 posted 15 years ago by rabc
Questo snippet modifica la posizione della data del post se questo è più vecchio di trenta giorni dalla data di pubblicazione.
0 896 posted 15 years ago by gavello
Just the copy of the official code
0 797 posted 15 years ago by koko
Just a quick script to enable default text within a form element to be cleared or restored upon focus/blur of a particular element. Should give you roughly the same functionality as the new HTML5 webforms "placeholder" attribute.
0 1006 posted 15 years ago by scheurbert
0 1005 posted 15 years ago by Drakkon
This example triggers the admin theme when on any of the user/* pages (login, edit, etc.). Put the name of your admin theme in {admin-theme-name} so there's a safe fallback in case variable_get doesn't find the admin_theme.
0 974 posted 15 years ago by jonathanpglick
A jQuery snippet to make form inputs show a help message which disappears on click (and comes back when the user enters nothing). Give your input the classes ‘remember’ to activate the snippet and (optionally) ‘unfocused’ as a CSS hook for ch...
2 991 posted 15 years ago by iqwebdev
Very easy way to preload images which are needed later (e.g. when a hover is performed)
4 1268 posted 15 years ago by iqwebdev
This CSS sets semi-transparent background while not affecting the opacity of child elements like using the opacity property would. The text color has been set to the same as the background color to demonstrate this. Notes: For the Microsoft fil...
0 1020 posted 15 years ago by chrisdpratt
Replace “value” with the default value. If the field is selected, the default value will go away. If the user has previously changed the field value, it’ll be left alone. Alternatively, use onfocus=”this.value=”;” to always clear the f...
1 1138 posted 15 years ago by iqwebdev
0 915 posted 15 years ago by iqwebdev
Get a filename part from a NSURLRequest. Optionally remove extension
0 868 posted 15 years ago by gfazioli
I used to program in classic ASP and would sometimes check if a certain word or letter would be in a string with instr. if instr(haystack, needle)>0 then DO SOMETHING end if If the needle starts on the first position of the haystack, instr...
0 1065 posted 15 years ago by seloh77
0 720 posted 15 years ago by lalaalaaa
This code so for placing images inside the wordpress template.
0 832 posted 15 years ago by gera3d
get custom fields value in wordpress theme
1 1195 posted 15 years ago by maximaker
Display anything based on the time of day
3 1051 posted 15 years ago by vagrantradio
Finds word "AGM" and replace with acronym or abbr title.
2 1132 posted 15 years ago by vagrantradio
1 ... 283 284 285 286 287 ... 554