1 2 3 4
$(document).ready(function(){ $('#nav_menu_1').before('<a id="open_all" class="" href="#">Screen reader users can click here to open all menus</a>'); $("#menu_column ul li").not("#menu_column ul li ul li").each(function(){ ...
JavaScript Simple jQuery script - Opti...
1 2 3
function dataStringToArray(dataStr) { var arr = dataStr.split("|"), ...
JavaScript Delimited data string to ne...
Given a string in this form...
1 2 3 4
# Javascript <script type="text/javascript"> function AddCommas(nStr) ...
JavaScript Format Numbers With Commas
by kathy-wu.myopenid.com,
June 07, 2010 18:14,
6 refactorings
I'm adding commas to user i...
1 2 3 4
var reg = /<\/?\w+\s?\/?>/ig; var test = "<em>Risk &<br />Compilance<br />Projects</em>"; test = test.replace(x, ""); ...
JavaScript Regex: Remove all HTML tags...
In my tests this works but ...
1 2 3 4
Function.prototype.waitUntil = function (condition, interval) { interval = interval || 100; ...
1 2 3 4
[html] <!DOCTYPE html> ...
JavaScript Working jQuery but a bit cl...
by Jermaine,
April 19, 2010 14:17,
2 refactorings
Hi Everyone,
I'm changi...
1 2 3 4
<table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%"> <tr> <td height=1> ...
JavaScript how i make it work on Firefox?
by pbruna.myopenid.com,
April 24, 2010 00:57,
2 refactorings
This code works on IE6, im ...
1 2 3 4
function encodeHTML(html) { encoded = encodeURI(html); ...
JavaScript Escape HTML
by Nathan,
March 31, 2010 13:48,
2 refactorings
All HTML special characters...
1 2 3 4
$.fn.hijackChangeItemPlacement = function() { var confirm_box = $('<div class="inline notice message" style="display: none;"></div>'); var loading = $('<p>Väntar på svar…</p>'); ...
JavaScript jQuery: Simple AJAX and a f...
So this is just something I...
1 2 3
function matches(matchString,list) ...
JavaScript Search a string with wildcards
by Nathan,
March 03, 2010 00:48,
5 refactorings
I want to have a string whi...
1 2 3 4
this.rotate = function (antiClockwise) { if (antiClockwise) ...
JavaScript Rotate co-ordinates
A nice and fun one here. I ...
1 2 3 4
// this is a function that creates with_libraryname functions var lazy_load_library = function (path) { return function () { ...
JavaScript Lazy Library Loading
by raganwald,
February 26, 2010 22:31,
2 refactorings, tagged with javascript, jquery, jgesture, periodicalupdater, lazy loading, lazy evaluation
There are certain libraries...
1 2 3 4
rightOffset = 20; topOffset = 20; ...
JavaScript Center text along a sloping...
by Nathan,
February 26, 2010 23:46,
1 refactoring
I've written a countdown to...
1 2 3 4
(function($) { $.fn.SelectedNav = function(options) { ...
JavaScript jQuery plugin: add class to...
by chad.tolkien.id.au,
February 15, 2010 07:03,
3 refactorings, tagged with jquery, plugin, html, website
I'm using this plugin in co...
1 2 3 4
function changeColours(headerClassColour,contentClassColour,bannerDivColour) { document.getElementById("content").className = contentClassColour + "-content"; ...
JavaScript Colour changer
by Nathan,
February 19, 2010 13:55,
2 refactorings
Intended to give a create a...
1 2 3 4
var getRandomNo = function(seed){ ...
JavaScript learn more explodeEffect
by adardesign.myopenid.com,
February 21, 2010 14:51,
2 refactorings, tagged with javascript, jquery, random, ui
This jQuery snippet creates...
1 2 3
;(function($) { $.fn.extend( ...
JavaScript filter selectbox with 3000+...
This is a little jQuery scr...
1 2 3 4
Date.prototype.addBizDays = function(n){ var day = this.getDay(); var d = new Date(); ...
JavaScript Business Days
The function add or substra...
1 2 3 4
function autogeneratepassword(params) { this.chartype_upper = params.chartype_upper this.chartype_lower = params.chartype_lower ...
JavaScript Cpanel like password generator
by armano.myopenid.com,
January 13, 2010 03:05,
3 refactorings, tagged with password generator, autogenerate password, cpanel
Good day guys,
Ive jst mad...
1 2 3 4
/** * timer.class.js - Version 1.0.0 * Last update: 01 Jan 2010 ...
JavaScript timer.class
please review this tiny jav...
1 2 3 4
<script type="text/javascript" src="prototype.js"></script> <ul id="theUL"> <li class="toto titi">1</li> ...
JavaScript Select Element with multipl...
by Denis Jacquemin,
December 03, 2009 08:23,
4 refactorings, tagged with javascript, prototype, prototypejs, css
Hi all,
With the help of...
1 2 3 4
function format_money(n) { var buf = [], ...
JavaScript Money formatting
Just needed to whip up a re...
1 2 3 4
if ($('invoice_discount')) { this.invoice_discount = this.form.down('#invoice_discount'); this.invoice_discount.observe('change', this._checkFormat.bindAsEventListener(this)); ...
JavaScript Need help with creating a loop
by chipcastle.myopenid.com,
November 01, 2009 18:37,
5 refactorings, tagged with javascript prototype
I have the following code t...
Hi, I am pretty new to JS, ...