Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A an excellent script for allowing links to open new windows while keeping the code standards compliant.
If you look at the last line of the script, you will notice that the JSTarget.init() function takes three parameters (all optional). This is w...
0
2158
posted 20 years ago by jonhenshaw
Use on a command line to copy a whole directory on a remote server down to your computer. Requires SSH access to remote server.
5
2425
posted 20 years ago by micmath
A useful but often overrated JavaScript function is the browser detect. Sometimes you want to give specific instructions or load a new page in case the viewer uses, for instance, Safari.
Copy this script into your JavaScript files. It works immedi...
1
2129
posted 20 years ago by jonhenshaw
You can use this script to always keep the copyright notice on the footer of your website current. For example, instead of having to update the year at the beginning of each year, this script will display current year. I'm sure there's an easier way...
2
2334
posted 20 years ago by jonhenshaw
Simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.
1
2341
posted 20 years ago by sorehead
This function first checks to see if PHP is set to automagically quote stuff. If it is, we first strip pre-quoted stuff, then (assuming our text isn't numeric), we properly quote everything.
A good bit of room for improvement here, but at the very l...
1
1836
posted 20 years ago by sorehead
wrap the text that will become a pullquote in a span element and give it the class name "pullquote"
1
1987
posted 20 years ago by designerd
Ðлементарно, Ñтильно, прикольно. СпаÑибо Ñоздателю.
0
1909
posted 20 years ago by Memphys
Patch para quitar el molesto cartel en una sola linea de codigo.
Lo interesante es que hace una cola de funciones para el "OnLoad".
Mas que nada sirve si tenes un sitio armado y tenes que meter este patch en todas tus paginas. Con la funcion "fixO...
2
2162
posted 20 years ago by inakiabt
Include Path PHP 5 class.
Usage:
$path = new fuselogic_include_path();
$path->add('/home/ekobudi/www/fuselogic');
$path->add('/home/ekobudi/www/pear');
$path->remove('/home/ekobudi/www/old_fuselgic');
0
2000
posted 20 years ago by ekobudisetiyo
This snippets try to download itself from http://snipplr.com using xml-rpc
6
2309
posted 20 years ago by arcturus
Stop the background image flickering on IE by including this code in the header of your page. See link for more information.
2
2638
posted 20 years ago by 1man