about javascript

JavaScript


JavaScript adds interactivity to a web page and can be used to perform many functions that HTML can't. Below is an example of a slideshow which works by using the limited version of the Document Object Model that was first available in Netscape's version 3 browser. This allowed the name attribute to be given to an image tag and this name to be referenced by JavaScript.
This takes the form
<img src="some_graphic.jpg" name="some_name">
The object can then be referred to by JavaScript thus
document.images["some_name"].src=another_graphic.jpg;
All that's needed is to set the image source value using an onClick event handler, which forces the browser to download a new graphic image in place of the old.

Click on a thumbnail to enlarge thumbnail      thumbnail      thumbnail      thumbnail
thumbnail
thumbnail
thumbnail
thumbnail
enlarged image


Advertisement


© 2000-2008 smallbizonline website design Tel: 01501 771106 Privacy Policy  Terms & Conditions    RSS Feeds
We accept Visa, Mastercard, Electron, Delta, Maestro, Link, Amex, Solo and Paypal

Reviewed and approved by the Good Net Guide UK Database Driven Web Designers
JavaScript example
Professional Web Design Services



01501 771106