Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 476 477 478 479 480 ... 553
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 1485 posted 18 years ago by DesTincT
The refresh meta-tag for the html header to redirect to another url.
0 1892 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 2095 posted 18 years ago by wizard04
2 1808 posted 18 years ago by taboularasa
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 3103 posted 18 years ago by shrop
1 1596 posted 18 years ago by KernelPanic
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 1541 posted 18 years ago by wizard04
Useful when creating canonical forms of strings for indexing.
0 1821 posted 18 years ago by scarfboy
There is no standard for this at all - this just looks for the hooks that exist in IE and gecko-type browsers. See also http://msdn.microsoft.com/en-us/library/ms535926(VS.85).aspx and http://developer.mozilla.org/en/docs/DOM:window.sidebar
3 1818 posted 18 years ago by scarfboy
Exploits hash keys uniqueness, but in doing so effectively toString()s everything, meaning this should not be used for much beyond strings and perhaps integers. I used this when I wanted to do some client-side filtering of (integer) identifiers.
1 1638 posted 18 years ago by scarfboy
Adds commas to numbers. 1234567 becomes 1,234,567
1 2479 posted 18 years ago by jdstraughan
1 2177 posted 18 years ago by Juego
The GNULib is included in GTK+.
0 1688 posted 18 years ago by pckujawa
This is a collection of useful static initializers of Java arrays, lists and maps.
0 1433 posted 18 years ago by narkisr
Effbot's page on the os module: http://effbot.org/librarybook/os.htm The os module has lots of methods for dealing with files and directories: http://docs.python.org/lib/os-file-dir.html The shutil module: http://docs.python.org/lib/module-shut...
0 2361 posted 18 years ago by chombee
This is a simple base for an approximate search application. You can currently use this to do search's but it, is not very sophisticated, right now anything that is as difference in characters base on the threshold will show up in the result, so with...
3 1820 posted 18 years ago by Cory
A simple way to display a block-level-element over a flash document.
2 1736 posted 18 years ago by stil72
2 1842 posted 18 years ago by Freese
0 1577 posted 18 years ago by Juanje
0 1542 posted 18 years ago by zeman
Useful functions to get around browser incompatibilities when working with stylesheets. If you find any errors, please leave a comment.
0 1772 posted 18 years ago by wizard04
sample: var text = " string content "; text = text.trim();
2 1648 posted 18 years ago by donkeykong
1 ... 476 477 478 479 480 ... 553