Welcome To Snipplr
Everyone's Recent Snippets Tagged c
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
By default, this template will use the page title as the category to pull from – but you can also create a custom field with ‘category’ as the name and the preferred category name as the value.
1
962
posted 14 years ago by trepmal
Just a quick fix for a tag link issue I came across.\r\n\r\nbroken url:\r\ndomain.com/tag/two word.html\r\n\r\nif you take the spaces in the URL and replace them with pluses (‘+’) it’ll work. For example:\r\n\r\nfixed url:\r\ndomain.com/tag/two...
0
903
posted 14 years ago by trepmal
I don't recommend this, it just needed it for a particular situation. Does not work with dropdowns.
0
1006
posted 14 years ago by trepmal
Examples borrowed from http://ubuntuforums.org/showthread.php?t=966877 (comment 3)
0
1065
posted 14 years ago by cczona
Found this online somewhere. It\'s now the starting point for all my CSS font layouts
0
851
posted 14 years ago by reynish
Auto refresh the browser. Set refresh time with content="[seconds]"
2
898
posted 14 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
779
posted 14 years ago by cessnajumpin
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
1015
posted 14 years ago by cryothic
Incredibly useful. Great when you need to remove and add options to selectboxes.
0
1250
posted 14 years ago by Meander365
Add the last three lines to fix text-indent in IE7. Alternatively, you can also add text-transform:capitalize.
0
949
posted 14 years ago by vagrantradio
Needs to be set on every element.\r\nimg.png needs to point to background
0
1006
posted 14 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
1030
posted 14 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
1002
posted 14 years ago by fackz