Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 28 29 30 31 32 ... 46
0 787 posted 15 years ago by rccc
0 601 posted 15 years ago by draeton
Load this Javascript after the MS AJAX files have been loaded. In the example I am using jQuery to call the patchMicrosoftAjax() method, but you can use any method you desire.
0 1651 posted 15 years ago by jink
0 779 posted 15 years ago by ReeceMarsland
1 977 posted 15 years ago by morvan
Highlights the current post/page in the Wordpress sidebar.
0 985 posted 15 years ago by dmatranga
This can be tested using the following piece of code var a = [1, 2, 3, 4, 5]; alert(a.size());
0 893 posted 15 years ago by arunpjohny
This function is add 'each' function to the javascript Array object.
1 763 posted 15 years ago by arunpjohny
First value takes empty input values and adds 'Enter Value'.<br> Second snippet removes 'Enter Value' when input is focused.<br> Third snippet re-adds 'Enter Value' if the value is left blank.
2 1203 posted 15 years ago by smoothdzion
Returning a boolean inside of jQuery's $.each() function will only break the loop. To get a return value, you can convert the jQuery object to array and use a regular for loop in javascript.
0 1241 posted 15 years ago by jasonseney
This will convert a *TimmerInterval* to a locaized date ...
0 688 posted 15 years ago by yisreldov
his set of Javascript functions trim or remove whitespace from the ends of strings. These functions can be stand-alone or attached as methods of the String object. They can left trim, right trim, or trim from both sides of the string. Rather than usi...
2 1038 posted 15 years ago by Mithun
Select some text to translate, or don't select anything to translate the entire page.
0 864 posted 15 years ago by wizard04
The Number objects value determines how often the supplied function is repeated. Inspired by ROR & Python. "Pollutes" Number's prototype.
0 931 posted 15 years ago by peta
This is based on the [Sort Gmail Messages By Bookmarklet](http://snipplr.com/view/10432/sort-gmail-messages-by-subject/ "Sort Gmail Messages By Bookmarklet - http://snipplr.com/view/10432/sort-gmail-messages-by-subject/") snippet. Drag this int...
1 1055 posted 15 years ago by roryok
This script will allow you to choose which site you want to login to (Choose from WHMCS, TCAdmin, Cpanel) You need to edit the action= in each form to the correct address of your website.
1 868 posted 15 years ago by jcroom
Video For Everybody is a great way to use the `<video>` tag with fallbacks for QuickTime or Flash for users with old browsers, but it requires that every video be encoded twice (once for the MP4 and once for the OGG). This code (which requires Moo...
0 984 posted 15 years ago by Kit
1 979 posted 15 years ago by quest
A simple jQuery-powered hover based on the element's title
0 756 posted 15 years ago by teedy
Outputs the number of Pixels Per Inch in the current Device
0 1948 posted 15 years ago by rportela
pretty basic; dimensions of screen and browser display window
0 897 posted 15 years ago by rwczippy
1 ... 28 29 30 31 32 ... 46