Regex methods for grabbing HTML Classes





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

« Previous 1 2 3 4 5 6 7 8 9  ...  13 14 Next »
6
Date Submitted Wed. Oct. 17th, 2007 2:34 PM
Revision 1
Helper chaos
Tags createElement | IE | JavaScript
Comments 0 comments
A wrapper on top of createElement for getting around IE problems with manipulating the name attribute. Unlike most solutions for this, it tests for which method to use once when the page loads rather than every time an element is created. By Chaos of Lost Souls MUD (a text-based fantasy RPG).
6
Date Submitted Wed. Mar. 7th, 2007 3:48 PM
Revision 1
Beginner stalkerX
Tags DOM | Element | JavaScript
Comments 0 comments
Return object by type. Revision 2.
7
Date Submitted Sat. Mar. 3rd, 2007 5:55 AM
Revision 1
Scripter shachi
Tags foreach | JavaScript
Comments 4 comments
Just a small snippet I discovered when I was tired writing somearrayname\[i\] I thought there was something like foreach in javascript but couldn't find any so why not make one?
For those foreach(){...} lovers.

Hope it makes your life easier.
7
Date Submitted Sat. May. 12th, 2007 10:38 AM
Revision 1
Helper albud
Tags colour | JavaScript | palette | web-safe
Comments 1 comments
A websafe colour palette generator in JavaScript. Coded this after looking at http://www.bytemycode.com/snippets/snippet/585/ and wanting to do it differently.

It's been refactored so that:
* can pass generateColourPalette an arbitrary array of colour codes and it'll generate a palette.
* it hooks into the page through the external file
* uses an internal stylesheet instead of inline styles
7
Date Submitted Fri. Jul. 20th, 2007 11:12 PM
Revision 1
Helper lavaramano
Tags Array | getelementsby | JavaScript
Comments 1 comments
Returns an array with all the objects with certain class. tested on IE 6 and Firefox 2
7
Date Submitted Wed. Apr. 4th, 2007 8:52 AM
Revision 1
Helper ushi
Tags Anti-Injection | Class | Database | mysql | PHP
Comments 6 comments
A simple MySQL class for use in PHP.
Feel free to suggest improvements.
7
Date Submitted Sun. Oct. 8th, 2006 9:28 PM
Revision 1
Beginner trevis
Tags Array | JavaScript | setTimeout | String
Comments 3 comments
I use this function when passing an array to a function being called from setTimeout();
7
Date Submitted Fri. Aug. 4th, 2006 9:57 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 1 comments
Alternate row coloring using javascript
7
Date Submitted Fri. Aug. 4th, 2006 10:01 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 0 comments
check if a function exists in your code using javascript before calling it.
7
Date Submitted Thu. Aug. 10th, 2006 2:20 AM
Revision 1
Syntax Master sundaramkumar
Tags JavaScript
Comments 0 comments
convert a string to x,y,z types
« Previous 1 2 3 4 5 6 7 8 9  ...  13 14 Next »