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

« Previous 1 2 3 4 5 6 7 8 9  ...  11 12 Next »
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
8
Date Submitted Thu. Apr. 12th, 2007 2:33 PM
Revision 1
Beginner siva
Tags Email | JavaScript | Mail | protect
Comments 4 comments
You can search for "@" or something like mail information in your page source code. You'll find nothing.
You can have link of your mail with a title or just you mail address as the title. Hope this code have no problem...
10
Date Submitted Wed. Mar. 14th, 2007 12:06 PM
Revision 1
Scripter shachi
Tags Cookie | JavaScript | object
Comments 0 comments
This is a simple cookie object that handles some of the basic cookie functions and which is kind of like a simple cookie-object parser.

Hope you like it.
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?
8
Date Submitted Thu. Mar. 8th, 2007 11:37 PM
Revision 1
Helper Fordiman
Tags ajax | browser-independent | JavaScript | Library | XML
Comments 0 comments
libNog is a 9k library to provide somewhat easier browser-independence. It is not yet complete, and will be continuously revised. It grew from this snippet, and is still growing as I find things I use often.
Presently, libNog features:

A way to browser-independently get an XMLHttpRequest object.
A set of simple methods for GET, POST, HEAD, and to include other Scripts.
Simple methods for className control
A completely abstracted form of getElement*
Browser-independent methods for attaching and detaching event handlers
An event-normalization routine
A simple one-command 'Stop the Event' routine
And the big one: A simplified Class object by which classes can be built in JavaScript.

The above link will point you to the API documentation and history of libNog, as well as where to download the library.
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.
-3
Date Submitted Wed. Mar. 7th, 2007 9:49 AM
Revision 1
Beginner stalkerX
Tags DOM | Element | JavaScript
Comments 4 comments
Return object by type
2
Date Submitted Wed. Mar. 7th, 2007 8:57 AM
Revision 1
Beginner stalkerX
Tags DOM | Element | JavaScript
Comments 1 comments
Remove all children of Object.
8
Date Submitted Tue. Mar. 6th, 2007 7:26 PM
Revision 1
Helper albud
Tags JavaScript | String
Comments 1 comments
I like to have these two methods in my toolbelt, even though it's syntactic sugar, I think it aids clarity.
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.
« Previous 1 2 3 4 5 6 7 8 9  ...  11 12 Next »