Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Examples borrowed from http://ubuntuforums.org/showthread.php?t=966877 (comment 3)
0
1934
posted 16 years ago by cczona
Found this online somewhere. It\'s now the starting point for all my CSS font layouts
0
1576
posted 16 years ago by reynish
Auto refresh the browser. Set refresh time with content="[seconds]"
2
1766
posted 16 years ago by reynish
All credit for this goes to iheartactionscript.com
I'm just copying it here so I won't have to remember where I found it
0
1521
posted 16 years ago by cessnajumpin
This code will redirect all requests to a maintenance page
0
1592
posted 16 years ago by IvoTrompert
Replaces the pre-defined text of a textbox (e.g. the purpose of the textbox) when the textbox gets focussed, and resets the text if it blurs when empty
1
2042
posted 16 years ago by cryothic
Incredibly useful. Great when you need to remove and add options to selectboxes.
0
2201
posted 16 years ago by Meander365
Add the last three lines to fix text-indent in IE7. Alternatively, you can also add text-transform:capitalize.
0
1747
posted 16 years ago by vagrantradio
Needs to be set on every element.\r\nimg.png needs to point to background
0
1781
posted 16 years ago by reynish
This will fix all embeded PNGs.
this.src = "img/spacer.gif"
Needs to point to a 1x1 transparent GIF or you'll get an Image not found icon in the corner of the PNGs.
0
1766
posted 16 years ago by reynish
This example shows how to delete specific files after a given time span.
This works good for cleaning cached files.
1
2370
posted 16 years ago by fackz
Put this in application layout for global use. Have a hidden div called 'loadicon' with a loading icon (or whatever) in it, which is shown/hidden on ajax calls.
0
4107
posted 16 years ago by insanedreamer
Geo Mashup contextual maps display the results of a WordPress query, so they can be very useful in combination with the WordPress `query_posts` function. This example maps post with an example tag, but any call to `query_posts` could be substituted....
0
1924
posted 16 years ago by cyberhobo
jQuery
jQuery dynamic loader - load jquery using pure js javascript if jQ is undefined or does not exist
0
2360
posted 16 years ago by brandonjp
jQuery
js javascript browser language detection, get the user\'s browser\'s language preference setting using jquery to detect users br
JQ - detect users browser language using http headers via ajax jsonp ajaxhttpheaders
1
4878
posted 16 years ago by brandonjp
Learn how to track outgoing links in Google Analytics with jQuery.
2
2228
posted 16 years ago by neal_grosskopf