Welcome To Snipplr


Everyone's Recent Snippets Tagged javascript



1 ... 19 20 21 22 23 ... 46
used on: ezpl theme, header.php just be sure to enqueue for any such scripts BEFORE wp_head(). Otherwise they don't get loaded. That is to say, it's probably best to have wp_head() rigth before </head>.
0 1440 posted 15 years ago by mjsiemer
A recent update to either Google's search results page or Firefox's Tab Mix Plus add-on has prevented a locked tab from opening links in a new tab. This Greasemonkey script removes the tracking code on the Google links that causes the problem. I don'...
0 1723 posted 15 years ago by wizard04
Simple Javascript test of the HTML 5 geolocation API spec
0 1757 posted 15 years ago by iamjpg
Basic JavaScript browser redirect.
1 1291 posted 15 years ago by jonkemp
An example taken from JavaScript: The good parts showing how to catch an exception.
0 1919 posted 15 years ago by 1man
A quick template for extending javascript/jQuery functionality
1 1400 posted 15 years ago by nikefido
A template of a basic jQuery plugin, including over-ridable options
3 1739 posted 15 years ago by nikefido
A small plugin that you can use in the jQuery chain to delay the next in queue. For those using a jQuery library pre 1.4 (v1.4 + has .delay() ). $('.notice').fadeIn().idle(2000).fadeOut('slow');
0 1471 posted 15 years ago by Meander365
<asp:ScriptManager> must be placed inside a form tag with runat=server, that is, beneath &lt;form&gt;
0 1731 posted 15 years ago by rumremix
0 1473 posted 15 years ago by terrencewood
Pure JavaScript countdown timer
0 1270 posted 15 years ago by Sullan
1 1384 posted 15 years ago by kopeo
This JavaScript code snippet checks each integer in an array. If necessary, one or more leading zeros are added to an integer. Note that each integer becomes a string.
1 1510 posted 15 years ago by DADU
Sometimes iframes are unavoidable, and in those cases you usually don't want it to be apparent there is one. This will find the height of the iframed contents and resize the iframe accordingly, making it appear to be part of the page. Almost positive...
2 1841 posted 15 years ago by StevenW721
Select the specified option for alle html selects as jQuery.
0 1608 posted 15 years ago by pogosheep
0 1766 posted 15 years ago by cadrlife
0 859 posted 15 years ago by flavioguima
I found this really useful when using AJAX that will change database. Preventing the user to re-do the action is not the best way but it still is a little unobtrusive to the user as it lets him navigate the page and know what is going on.
2 1987 posted 15 years ago by verhaeg
tag links with .click function
0 3574 posted 15 years ago by insanedreamer
1 ... 19 20 21 22 23 ... 46