JavaScript Tutorials
The Mouseover / Rollover Effect
This is what you often see on various web sites - when you hover your cursor over an image, it metamorphoses into some other image. For instance, a simple two-dimensional button changing into three-dimensional with shadow underneath.
This is what you often see on various web sites - when you hover your cursor over an image, it metamorphoses into some other image. For instance, a simple two-dimensional button changing into three-dimensional with shadow underneath.
Looping through form elements using JavaScript
An example of looping through all the form fields could be checking and unchecking all the check boxes present on a page (checking all the records to delete, or adding all the items to a shopping cart, for instance).
An example of looping through all the form fields could be checking and unchecking all the check boxes present on a page (checking all the records to delete, or adding all the items to a shopping cart, for instance).
JavaScript Equivalent of PHP Explode Function
In PHP we can easily break a long string into smaller parts by using the explode() function of PHP. In runtime, this function works like this...
In PHP we can easily break a long string into smaller parts by using the explode() function of PHP. In runtime, this function works like this...
Disabling the Right-click Mouse Button
Sometimes you don't want the visitor to be able to click the right mouse button and do all the stuff associated with it. Although personally I'm not in favor of such gimmicks and limit the visitor's independence, you learn something new in this tutorial.
Sometimes you don't want the visitor to be able to click the right mouse button and do all the stuff associated with it. Although personally I'm not in favor of such gimmicks and limit the visitor's independence, you learn something new in this tutorial.
Writing Classes in Javascript
Wrtting classes in Javascript doesn't give full functionality of an object oriented language, but it at least gives data hiding and encapsulation which are very useful specially when javascript is not a strongly typed language.
Wrtting classes in Javascript doesn't give full functionality of an object oriented language, but it at least gives data hiding and encapsulation which are very useful specially when javascript is not a strongly typed language.
Creating a tree menu with JavaScript
This tutorial will show you the basics of using some simple JavaScripting methods to create a drop down menuing system for your site.
This tutorial will show you the basics of using some simple JavaScripting methods to create a drop down menuing system for your site.
Javascript confirmation box
Shows you how to make a confirmation box that will take the user to a link if they click OK, or stay on the same page if they click cancel.
Shows you how to make a confirmation box that will take the user to a link if they click OK, or stay on the same page if they click cancel.
Building a Javascript Array
Here are the basics of how to make a simple javascript array for your HTML page. To get you started, first you have to call the scripting method you are going to use. In this case we will call javascripting method.
Here are the basics of how to make a simple javascript array for your HTML page. To get you started, first you have to call the scripting method you are going to use. In this case we will call javascripting method.
Client-side Validation with Javascript
I will admit that I am not a huge fan of client-side scripting (for the exception of HTML, of course) because of its relatively low power and compatibility between browsers. Javascript, however, is as powerful as any client-side language comes, and text field validation is a tremendously desired capability many webmasters want for their forms, and without server-side languages (or at least knowledge of them), Javascript is relied upon very heavily.
I will admit that I am not a huge fan of client-side scripting (for the exception of HTML, of course) because of its relatively low power and compatibility between browsers. Javascript, however, is as powerful as any client-side language comes, and text field validation is a tremendously desired capability many webmasters want for their forms, and without server-side languages (or at least knowledge of them), Javascript is relied upon very heavily.
How to create simple chromeless popup windows
How to create chromeless pop up windows without 100 lines of Javascript!
How to create chromeless pop up windows without 100 lines of Javascript!
