Default TemplateGreen TemplateBlue TemplateRed TemplateGold TemplateBlue Gloss Template
Article Categories

Mycities Network
Java Scripts Examples and Tutorials

Write the current date using JavaScript
Using the date() object in JavaScript, we can print the current date in a variety of popular formats.
[Views:1031] [Wed, Apr 23, 2008] [Full Article]

Drag and drop to order list elements with Scriptaculous
Past few days I was searching for drag and drop features from all the website, but I couldn't find a good one, all are given examples but not what I want. Finally I have fond a good blog site and I fetch the code what want. So I thought to share this code who is visiting to my site.
[Views:941] [Wed, Feb 27, 2008] [Full Article]

JavaScript replace() Method
The replace() method is used to replace some characters with some other characters in a string. stringObject.replace(findstring,newstring)
[Views:1015] [Mon, Dec 31, 2007] [Full Article]

Change the mouse point into a waiting glass over a link or special arrows for some reason.
Change the mouse point into a waiting glass over a link or special arrows for some reason. You can also change the cursor with any image you want. Did you know that you can change the look of the standard cursor/mouse pointer with css?
[Views:1213] [Tue, Feb 06, 2007] [Full Article]

Java Script Page Loading....
This is a small script I have found from a website, it will display a loading message before your page is loading, I don't know if you just copy and past it will work, please read the code and understand and then use it.
[Views:1365] [Fri, Jan 05, 2007] [Full Article]

JavaScript - Else If
When the condition is 'true' the if statement block is executed while the statement block in else is executed when the condition is 'false'. However, as in life, things are rarely black or white... there are always shades of grey.
[Views:1204] [Mon, Dec 18, 2006] [Full Article]

Combo box with description
A combo box that also displays a short description of the selected link in a form box.
[Views:1226] [Sun, Nov 26, 2006] [Full Article]

JavaScript and memory leaks
If you're not careful, your JavaScript code may leak memory and sometimes even bring the visitor's browser to its knees. This tutorial looks at different leak patterns in JavaScript and how to fix them.
[Views:1096] [Sun, Nov 26, 2006] [Full Article]

Changing Select element content on the fly
Changing a select element's content on the fly is a powerful feature of JavaScript that's just as practical. It forms the basis of implementing inter-dependant select menus, where the selection of one menu changes the contents of another. In this tutorial, lets look at how this is done, and also, how to create a 2 level interdependent select list using the technique. Sounds like fun!
[Views:1213] [Sun, Nov 26, 2006] [Full Article]

Calculating the difference between two dates
Calculating the difference between two dates in JavaScript is relatively straightforward, provided you choose the right Date methods to work with. Whichever way you get there, the potential applications on date differences are many, from counting down to a particular event, counting up from a past date, to dynamically indicating what's new on your page. Sounds like fun!
[Views:1159] [Sun, Nov 26, 2006] [Full Article]

Formatting Numbers (Working and Tested)
When you are processing numbers with javascript the numbers you are working with don't have any fancy formatting such as thousands separators and currency symbols. The numbers also use the period character as a decimal point which may not be the correct symbol for your locality (some places use a comma for the decimal point).
[Views:1207] [Sat, Oct 14, 2006] [Full Article]

Currency Formatting and Putting Commas In Numbers
Round numbers to the nearest hundredth, with two digits following the decimal point. This can be useful when displaying prices or the totals of orders. Insert commas between every third digit (right to left) for numbers 1000 and larger. This can make numbers easier to read.
[Views:1140] [Sat, Oct 14, 2006] [Full Article]

Number formating in Java Scripts (d commas)
This functionality is not built into JavaScript, so custom code needs to be used. The following is one way of adding commas to a number, and returning a string.
[Views:1098] [Sat, Oct 14, 2006] [Full Article]

JavaScript replace Function
The function replace can be used to replace a string with another string. A regular expression can be used to find the string.
[Views:941] [Wed, Oct 11, 2006] [Full Article]

JavaScript blink Function
The blink method can be used to make the string blink. This function only works in netscape. IE doesn’t support it yet.
[Views:974] [Wed, Oct 11, 2006] [Full Article]

What is JavaScript?

[Views:895] [Wed, Oct 11, 2006] [Full Article]

Blocks right-mouse, select and ctrl+C
This script blocks right-mouse, select and ctrl+C
[Views:919] [Thu, Sep 21, 2006] [Full Article]


Members Login
User ID
Password
    Register
Forgot password?

Sri Lanka Toolbar
Listen to live Sri Lanka Radio, Watch Sri Lanka TV, Search Sri Lanka, Search Google, Sri Lanka New
Download Sri Lanka Toolbar FREE



Terms And Conditions | Link Directory

Join Sri Lanka Banner Exchange | Resources - Free Link Exchange