Handy String Methods





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

« Previous 1 2 3 4 5 6 7 8 9  ...  14 15 Next »
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. 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)
-9
Date Submitted Sat. Sep. 30th, 2006 11:06 AM
Revision 1
Scripter shachi
Tags JavaScript | strip_tags
Comments 1 comments
Strips all tags from any string.
-11
Date Submitted Sun. Nov. 12th, 2006 6:09 AM
Revision 1
Scripter shachi
Tags JavaScript | screensaver
Comments 4 comments
This creates a black screen if the browser is inactive for a certain amout of time. I am not sure if it works in IE too but works fine in Firefox.
-13
Date Submitted Sun. Nov. 12th, 2006 6:11 AM
Revision 1
Scripter shachi
Tags confirmation | JavaScript | saving
Comments 2 comments
Just confirms if the user really wants to save the page or just hit the Ctrl+S accidentally. Works in FF maybe in IE too.
10
Date Submitted Wed. Dec. 20th, 2006 10:26 AM
Revision 1
Scripter shachi
Tags JavaScript | manipulation | removeCharAt | String
Comments 1 comments
This simple function simply removes the character at the given index from a string.

NOTE: The count starts from 0
10
Date Submitted Thu. Dec. 21st, 2006 3:48 AM
Revision 1
Scripter shachi
Tags addCharAt | JavaScript | manipulation | String
Comments 0 comments
Adds any character at the given index of a string.

NOTE: Count starts from 0
9
Date Submitted Thu. Dec. 21st, 2006 4:09 AM
Revision 1
Scripter shachi
Tags JavaScript | Number | times
Comments 3 comments
This script lets you do any action the number of times specified.
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.
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.
« Previous 1 2 3 4 5 6 7 8 9  ...  14 15 Next »