Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This will reset your style properties to the default values, specific to an element and its children.
Here are the all the properties that need to be set to default that also don't break modern browsers.... or less then modern, like IE 4/5.
0
10656
posted 18 years ago by marcusrosentrater
This command lists all the differences that were made between two revisions in SVN.
2
2406
posted 18 years ago by narkisr
This will create a general site blog teaser list at /blog. It requires a cck type named blog. This view also generates an RSS feed for the blog. This is compatible with Views1 for Drupal 5.
2
2004
posted 18 years ago by shrop
A useful AWK one liner, see http://student.northpark.edu/pemente/awk/awk1line.txt for some more
1
1978
posted 18 years ago by narkisr
example code only... save to [path.to.profile]/searchplugins/
1
1891
posted 18 years ago by rwczippy
Two functions. 1) Find the string between characters. 2) Create array of strings found between two characters.
1
2081
posted 18 years ago by jamesming
1. Make sure the following environment variable is set:
WinXP:
HOME=C:\Documents and Settings\*username*
Vista:
HOME=C:\Users\*username*
2. Create an .irbrc file in %HOME%:
$ cd %HOME%
$ touch .irbrc
If you don't have...
1
2112
posted 18 years ago by charlesroper
Content may disappear on window resize in IE6/Maxthon, when using expressions to set min-width/max-width. To fix it - just remove 'position:relative' in #container.
0
1659
posted 18 years ago by DesTincT
The refresh meta-tag for the html header to redirect to another url.
0
2125
posted 18 years ago by Wiederkehr
`Events.add(element, type, handler)` adds a handler to an element
`Events.remove(element, type, handler)` removes a handler from an element
`Events.getTarget(event)` or `Events.getOrigin(event)` returns the element from which the event originat...
1
2281
posted 18 years ago by wizard04
This is useful if you are changing a Drupal site's file upload path and/or changing from a private to a public file store.
3
3320
posted 18 years ago by shrop
Functions to use the clipboard.
Requires a Flash file for non-IE browsers: see [http://javascript.internet.com/forms/clipboard-copy.html](http://javascript.internet.com/forms/clipboard-copy.html)
Remember to set `config.Clipboard.pathToFlash` a...
1
1683
posted 18 years ago by wizard04