JavaScript Sample Code
-
Animated Text
by Peeyush Nigam
Animate text using JavaScript
-
Finding a string inside a larger string
by David Nishimoto
Explains how to find a string inside of a bigger string
-
Combining Javascript and DOM
by David Nishimoto
David Nishimoto demonstrates accessing the Document Object Model available in IE 5 from your javascript code
-
Animated Buttons
by Peeyush Nigam
A few more animated buttons using CSS, Javascript and DHTML to create new more interactive & cool Form Button controls. Remember the code is best suited for only IE-5.5 and above.
-
Fading Scrollbar
by Peeyush Nigam
This code can be used to design a Fading Scrollbar, using CSS and JavaScript technology.
-
Animate Button
by Peeyush Nigam
Following code is to develop different animated buttons using the tricks of CSS, Javascript and HTML. The code is effective for IE-5 and above. Developed by Peeyush Nigam (CEO-PARI WEB SERVICES™)
-
Field Content Validation
by Super Tal
Performs validation on a HTML field based on the criteria you specify.
-
Dynamically Adding OPTIONS to SELECT
by Bruce Johnson
How To: Dynamically Add an OPTION to a SELECT in a browser
-
Converting a CR to a TAB in a Web Page
by Bruce Johnson
Pretty self explanatory, don't you think?
-
Browser Detect
by nzjonboy
Javascript to detect the browser being used to view your site
-
Add a Bookmark
by Peeyush Nigam
Add a bookmark to the visitors Favourites folder in Internet Explorer
-
Number Validation
by Super Tal
Use this function to validate a form field to only accepts numbers.
-
Validate Currency Field
by Super Tal
Want to validate your field to only accept US currency? Try this short JavaScript function.
-
Print function
by Super Tal
This small, simple function will call the Windows print function within a browser.
-
TextArea character limits
by Super Tal
This code will show how to limit the number of character a user can enter into the HTML TextArea form field.
-
Format field to currency
by Super Tal
Formats a field to US dollar currency style.
-
Dynamically filling ComboBoxes
by Kiran Pai
Filling the values of a dropdown SelectMenu depending on the selection in another Menu.
-
Validating the form contents
by Kiran Pai
How to validate entries in a form before allowing it to be submitted
-
Creating Rollover effects
by Kiran Pai
How to change images using the MouseOver and MouseOut events to create a mouse roll-over effect
-
Counting down with JavaScript
by Kiran Pai
How to display a countdown using different images and Javascript