Easy Java Script Code
Calculators For Your Web Site : Length Units Converter In this article, I provide you with Java Script code for a Length Units Converter. For example,
your visitor can enter a length in English feet and it will be converted to a length in metric
meters. I keep the code as simple as possible. More ... Use JavaScript parseInt() and parseFloat() to Convert Strings to Numbers If the results of a mathematical operation in your script are not what you expected, make
sure that you convert any numbers represented as strings to the actual number data type
before performing the operation. More ... Easy JavaScript Picture Selector Code Suppose you want to create a digital photo album to display a group of pictures, but you don't want
the page to be too large. One solution would be to display only one full size picture, and the other
pictures as small thumbnail images. More ... Easy Java Script Windows This article gives you the basics of designing, opening, and closing browser windows using Java Script.
In future articles, I will show you how to do all kinds of annoying things with windows using Java Script. More ... Using the Java Script Array Object When you want to work with multiple related values, you can use the Array object. The new
keyword is required when creating an array of object type data, like an array of string
objects. The new keyword is not required when creating an array of simple variable types,
like integers. In this article you learn about mutidimensional arrays, and study examples
of how to use each Array Object method. More ... Java Script Code to Factor Numbers Being able to factor numbers is an important skill, one that is necessary to
work with equations, fractions and polynomials. In this article, I show you
how to use Java Script to factor a number, therefore you will learn a little
mathematics and a little programming at the same time. More ... Java Script Comparison Operators A comparison operator compares two values and returns the result "true" or "false". For
comparing numeric values the operators perform the same as they do in algebra. For
comparing character strings each character in the strings are converted to their ASCII
values and then a numeric comparison is made. More ... Creating Java Script Dynamic or anonymous Functions at Runtime In Java Script you can code a function at design time, or you can have Java Script write the
function code during execution. A function that is created at runtime is called an "anonymous"
or "dynamic" function. More ... Easy Slide Show Code One of the problems with creating such a slide show is that the images should all be the same size.
If the images are not all the same size, your web page may grow and shrink as the different images
are displayed. More ... Easy Picture Panning Code In this article, I provide you with code that will pan an image back and forth, as if you where looking
at a video. But this code does not require video, just a simple image and a few lines of Java Script code. More ... Replace Drop-down with Drag-and-drop From a webpage designers point of view, drop-down lists require a lot of html tags. Wouldn't
it be nice if you could just let the user drag-and-drop text into a simple text box. You can! More ... Easy Picture Zoom Code This article provides the minimal code for four different methods to add zoom to the pictures on your Web
page. The first method uses a single image. When you click on the image a JavaScript function is used to
enlarge the image. More ...
|