Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged javascript
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Example:
`var result = "Hello {0}! This is {1}.".format("world","foo bar");`
Returns:
`"Hello World! This is foo bar."`
2
1110
posted 16 years ago by jasonseney
These functions allow you to easily set a handler for a virtual mouseleave/enter event.
This requires my [MouseBoundaryCrossing](http://snipplr.com/view/8206/crossbrowser-mouseenterleave-solution/) class.
1
758
posted 16 years ago by wizard04
jQuery Plugin for returning selected DOM Nodes in DOM order. e.g. $('img.L,img.Y') will not be guaranteed DOM order (usually all the L's then all the Y's).
Currently only works with IE and FF (that's all I needed).
1
865
posted 16 years ago by kouphax
The only function the Tag Cloud singleton exposes it the process() function which take 3 arguments.
1. Cloud Data - Required. Needs to have a display value property and a count property. The actual property names are configurable but by default...
0
747
posted 16 years ago by kouphax
When you're viewing an older version of a snippet, the Plain Text and Highlighted Text links point back to the latest version. This greasemonkey script fixes those links to point to the version you're currently viewing.
0
727
posted 16 years ago by wizard04
Sniff and disable Firebug. Not sure why you'd need it though. Firebug is just great.
4
857
posted 16 years ago by zerolab
Description
print_r - Prints human-readable information about a variable
mixed print_r( mixed expression [, bool return] )
print_r() displays information about a variable in a way that's readable by humans.
Parameters
* expression...
0
767
posted 16 years ago by ianmonge
Modified just a bit. This version includes the Google Chrome beta.
2
878
posted 16 years ago by wizard04
This is a simple javascript snippet that will allow you to specify a particular class to a group of checkboxes and then select them all at once when you click the master checkbox. This came in very handy for a store inventory script when I needed to...
0
1055
posted 16 years ago by aristoworks
Just some pseudo-code notes about using labels with `break` and `continue` statements.
0
841
posted 16 years ago by wizard04
Highlight an address and click the bookmarklet to open it in Google Maps
1
765
posted 16 years ago by wizard04
In mouseout and mouseover event handlers, use this object to check if the mouse was leaving or entering a "landmark" element. See my [MouseEnter/Leave Handlers](http://snipplr.com/view/8913/mouseenterleave-handlers/) snipplet for a practical use....
3
906
posted 16 years ago by wizard04