Best of the Australian Flexible Learning Community 2001-2004

Technologies for Learning
Teaching, Training & Learners
Professional Development
Managing Flexible Delivery
Global Perspectives

 

Print this article
Free for education
Margaret Granger
21 November, 2002
How to use Javascript to Add Interest and Interactivity

JavaScript objects can be embedded into your web pages to add interest and interactivity to your creations.  There are several free sites available from which you can source interesting tools and objects.  I have included just a couple with this resource.

Hangman Game
Figure 1 demonstrates the Hangman tool.  This script could be useful in helping students gain familiarity with some of the language associated with your topic or work. To start the game simply click on the GO button. Experiment with this to see how you might use such a tool. To add or change the words used you'd go into the source code of the page. Find the following line:

var words = new

Add your words using the existing format... 

Live Hangman example


Quadratic Equation Calculator
This tool would be useful in determining various elements when working with quadratic equations.  A picture of the tool can be found at Figure 2, its code is contained in the file QuadCalc.htm.

Live Equation example


Loan Calculator
The results of this loan payment calculator are for comparison purposes only. They will be a close approximation of actual loan repayments if available at the terms entered, from a financial institution. This is being provided for you to plan your next loan application. To use, enter values for the Loan Amount, Number of Months for Loan, and the Interest Rate (e.g. 7.25), and click the Calculate button. Clicking the Reset button will clear entered values.  Check out the example in Figure 3, its code is contained in the file LoanCalc.htm.

Live Calculator example


Figure 1
Figure 1
Figure 2
Figure 2
Figure 3
Figure 3