Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged c



1 ... 50 51 52 53 54 ... 65
Ability to change/add attributes to HTML using JQuery
1 1005 posted 17 years ago by davebowker
https://www.chrisjmendez.com/2008/10/18/jquery-detecting-a-browser-resize/
8 2102 posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2008/10/18/jquery-common-browser-sniffing/
6 1526 posted 17 years ago by chrisaiv
Use by inserting the following in the head. <script> $(document).ready(function() { $("input").toggleVal(); }); </script>
0 1531 posted 17 years ago by davebowker
remove(array) --> array Array.remove(a) simply removes all the items in the passed in array from the current scope array. Good for bulk operations.
0 1335 posted 17 years ago by kouphax
0 1253 posted 17 years ago by ivang
this is a combination of javascript and css and an image called letters.jpg that allows you to use any font you want for the first letter of each paragraph. Letters.jpg needs to have all the letters in uppercase in a row. See the link for a sample le...
0 1130 posted 17 years ago by ezerick
setting additional css file for browsers under MacOS with JQuery
0 1280 posted 17 years ago by DesTincT
0 1204 posted 17 years ago by davebowker
You can find a string as an array row value. Ex: arr=['abcde','mdleo'] arr.find('dbd') -> array['abcde'] arr.find('akdowewo') -> array[] (empty)
0 1566 posted 17 years ago by tonic
0 992 posted 17 years ago by vasilije
Update: Fixed a bug at the basic click() function.
1 1185 posted 17 years ago by Wiederkehr
Example: `var result = "Hello {0}! This is {1}.".format("world","foo bar");` Returns: `"Hello World! This is foo bar."`
2 1959 posted 17 years ago by jasonseney
A simple countDown class in Javascript:
1 1479 posted 17 years ago by gfazioli
0 1164 posted 17 years ago by trey
5 1489 posted 17 years ago by trey
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 1405 posted 17 years ago by wizard04
Simple list of commands to use within Adobe AIR to help debug an application.
0 1247 posted 17 years ago by 1man
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 1382 posted 17 years ago by kouphax
0 1080 posted 17 years ago by pollux
This function will sort an array of DOM elements in order of the DOM position. Useful when using calls such as $$("img.L,img.M") which doesn;t return a sorted element array. It uses prototype but you can replace the Prototype.Browser stuff with a...
0 1676 posted 17 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 1137 posted 17 years ago by kouphax
Two different ways to open an external link (ones that start in http) in a new window. I know this isn't a great thing to do, but some clients _need_ to have it.
3 2037 posted 17 years ago by 1man
1 ... 50 51 52 53 54 ... 65