Easy Java Script Code
Creating Basic Java Script Functions In this article you learn how to create basic Java Script functions. You learn how to use
parameters and how to return values, including how to return an array from a function.
The article also intoduces variable scope. More ... Java Script Code for a Random Circle Generator Have you seen some Web content that uses a group of several different size and
color circles as a decoration? In this article I'll show you how to use a bit
of Java Script code to draw a group of random size and color circles. 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 Picture Transition Effects You've probably seen websites where a picture fades out, being replaced by another picture that fades in.
Or maybe you've seen a picture that replaces another picture by appearing as an expanding circle inside
the first picture. In this article give you some easy code to do just that! 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 ... How to Shuffle the Deck With Java Script In this article, you learn how to get and set a webpage element's z-index. The example code
provided used these principles to shuffle a small deck of playing cards by clicking or
double-clicking on their images. You might use this information to create your own webpage
card game, or for some other interesting application. More ... Using the Java Script Date Object When you want to work with a date in Java Script, you need to use the Date object. In this
article, you learn how to create a Date object for today, or for any date in the past or future.
You learn how to find the difference between two dates, and how to format a date string any way
that you desire. You also learn how to validate a date string returned from a text box in a form,
which involved an introduction to JavaScript regular expressions. More ... Easy Code to Sort a Table by Column A Table is a powerful way to present information. You can make your table even more powerful by
giving users the ability to sort it by different columns. In this article, I give you some simple
Java Script code that you can use to make almost any table sortable by different columns. More ... Java Script to Get Selected Item from Select List Option Group Since you may have identically named items in multiple optgroups, you need to a way
to get the name of the optgroup as well as the name of the option. The code in this
article shows you how. More ... Calendars for Your Website I'll start by showing you how to code a basic calendar that shows the current month with the current
day highlighted. Then, how to code a webpage that can display several months simultaneously, and
finally, a clickable appointments calendar. More ... Java Script to Get Selected Item from Drop-down Select List An HTML Select list is a form control used to create a drop-down list of items from
which the user can select. This article provides code to get the selected item from a select list. More ... Using a Select List for Navigation An HTML Select list is a form control used to create a drop-down list of items from
which the user can select. You can use a select list as a navigation element by
setting each option element's value attribute to the URL of a web site or web page. More ...
|