Javascript Array shuffle in-place





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

9
Date Submitted Sat. Mar. 10th, 2007 6:44 PM
Revision 1
Helper albud
Tags JavaScript | strings
Comments 0 comments
Rather than have standalone functions rtrim, ltrim, and trim (as in http://www.bytemycode.com/snippets/snippet/397/) why not have them as methods of all string objects?
9
Date Submitted Fri. Oct. 14th, 2005 5:06 PM
Revision 1
Helper lilleman
Tags Files | Folders | List | PHP
Comments 1 comments
Get a List of Folders and/or Files
9
Date Submitted Tue. Oct. 18th, 2005 11:12 AM
Revision 1
Beginner zero
Tags "Pop Up" | Center | JavaScript | Screen
Comments 0 comments
Center Pop-up
9
Date Submitted Mon. Apr. 3rd, 2006 8:59 AM
Revision 1
Coder mattrmiller
Tags Back | Button | JavaScript
Comments 1 comments
A simple back button in JavaScript.
9
Date Submitted Thu. Apr. 13th, 2006 10:46 AM
Revision 1
Coder mattrmiller
Tags Array | Case | PHP
Comments 0 comments
Change the case of an array.
9
Date Submitted Fri. Aug. 4th, 2006 10:16 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 0 comments
function to validate mac address
9
Date Submitted Thu. Aug. 10th, 2006 2:35 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 0 comments
Remove control character from a string
9
Date Submitted Wed. Aug. 16th, 2006 9:33 PM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 0 comments
Find min and max of an array
10
Date Submitted Tue. Feb. 28th, 2006 5:52 AM
Revision 1
Scripter TimYates
Tags HTML | JavaScript
Comments 0 comments
A prototype function to get an array of elements by id in an array
10
Date Submitted Wed. Sep. 27th, 2006 11:03 AM
Revision 1
Scripter shachi
Tags click | Control | ctrl/shift | JavaScript
Comments 3 comments
Gives you control to perform actions when the control key and the mouse button is clicked in the same time. Something similar to selecting elements in Windows with ctrl+click.

Just change the event.ctrlKey to event.shiftKey to make it shift+click. If you don't get it don't worry the snippet contains the demo for shift+click too.

You may need to change the event.which though 1 = left click, 2 = middle click, 3 = right click(at least in firefox 1.5.0.5)