Sabtu, 30 Agustus 2008
Sabtu, 16 Agustus 2008
JavaScript Examples
JavaScript Examples
Basic JavaScript Examples
Write text with JavaScript
Write HTML tags with JavaScript
JavaScript in the body section
JavaScript in the head section
An external JavaScript
JavaScript Statements, Comments and Blocks
JavaScript statements.
JavaScript blocks.
Singe line comments.
Multiple lines comments.
Single line comment to prevent execution.
Multiple lines comment to prevent execution.
JavaScript Variables
Declare a variable, assign a value to it, and display it
JavaScript Conditional If ... Else
If statement
If...else statement
Random link
Switch statement
JavaScript Popup Boxes
Alert box
Alert box with line breaks
Confirm box
Prompt box
JavaScript Functions
Call a function
Function with an argument
Function with an argument 2
Function that returns a value
Function with arguments, that returns a value
JavaScript Loops
For loop
Looping through HTML headers
While loop
Do While loop
Break a loop
Break and continue a loop
Use a for...in statement to loop through the elements of an array
JavaScript Error Handling
The try...catch statement
The try...catch statement with a confirm box
The onerror event
Advanced JavaScript Examples
Detect the visitor's browser and browser version
More details about the visitor's browser
All details about the visitor's browser
Alert user, depending on browser
Create a welcome cookie
Button animation
Image map with added JavaScript
Simple timing
Another simple timing
Timing event in an infinite loop
Timing event in an infinite loop - with a Stop button
A clock created with a timing event
Create a direct instance of an object
Create a template for an object
Posted by
Rio Chrisandi
at
09.03
0
comments
Jumat, 15 Agustus 2008
Cursor Changer
[Green] [Bright Green] [Sea Green] [Red]
[Magenta] [Fusia] [Pink] [Purple]
[Navy] [Blue] [Royal Blue] [Sky Blue]
[Yellow] [Brown] [Almond] [White]
[Black] [Coral] [Olive Drab] [Orange]
Posted by
Rio Chrisandi
at
01.38
0
comments
Kamis, 07 Agustus 2008
Rabu, 06 Agustus 2008
Jumat, 01 Agustus 2008
Javascript Forms
Javascripts > Javascript Forms
Scripts ordered by popularity. Newest scripts at the bottom.
Email Address Validation Script
Scan email addresses to make sure that the email address entered into the textbox contains valid characters.
144822 Views : 2053 Emailed Copies
Combo Jump Script
This script allows you to display a list of site titles in a combo box and allows the user to select one and go to it.
68526 Views : 900 Emailed Copies
Parse Number to Currency Format
This is a handy script for forms that contain money values. It automatically parses the form element of your choice whenever a surfer enters a number into the standard currency format.
53592 Views : 484 Emailed Copies
Field Clear Script
This script clears a text box when it is clicked on.
50426 Views : 688 Emailed Copies
Dynamic Title Adding Script
This script lets a visitor change a piece of text on your page.
48921 Views : 3210 Emailed Copies
Input Box Restrictions
This form validation JavaScript restricts the number of characters allowed inside an input field. Great for preventing people from overloading the form.
46132 Views : 574 Emailed Copies
Select All Script
This script selects all the content in a scrolling textbox.
44981 Views : 498 Emailed Copies
Select One 2
This scripts demonstrates how I limited only one selection by deselecting all others and how you can retrieve the value of the box you are selecting.
38787 Views : 388 Emailed Copies
FormCheck
FormCheck is a generic script which will check and verify that mandatory fields are filled in before form submission. If one or more of the required fields are empty. A popup dialog will appear showing the omitted fields.
35214 Views : 70 Emailed Copies
EMail Address Verification
If you ask for the e-mail address to the user in any textfield on a form, this script verifies whether the text entered in the field is in the format user@domain.com
11760 Views : 269 Emailed Copies
Dynamic Fields
The script generates a new feild in your form if you want to add more details. It is 100% client side and it uses a pair of cookies to retain its values across calls. The name of the feild goes like field1, field2 etc and can be used to pass values to the web server.I think this will be useful for data like academic qualifications.
11725 Views : 152 Emailed Copies
Auto Greeting
You can put this in your web page to greet your site visitors according to their local time.
11708 Views : 252 Emailed Copies
Auto Text Converter
This script will automatically and repeatedly write text into a input field.
10465 Views : 69 Emailed Copies
Colours
It changes your background colour every day
3863 Views : 145 Emailed Copies
Last Updated
Automaticly update the date when you have changed the content of you web page.
3039 Views : 52 Emailed Copies
Clear Form onFocus()
This script clears the content out of a form field onFocus().
2867 Views : 71 Emailed Copies
Code Box Editor
Tiny javascript which can be added to any webpage or blog and allows you to present your html, javascript & css code to your visitors in a more functional way, allowing them to play with & preview codes right on the same page.
1904 Views : 16 Emailed Copies
Editable Select Box
With the Editable Selectbox control, you can add, edit, delete, and even sort the options in a selectbox. Upon submission, it not only sends the selected item, but also all the other items in the order they appear, encoded in a hidden field.
1827 Views : 17 Emailed Copies
Simple Calculation Minus
Simple Calculation Minus : LENGHT DIVIDING
1616 Views : 15 Emailed Copies
Remove Duplicates From List
Remove duplicates from any list.
Posted by
Rio Chrisandi
at
09.39
0
comments

