JavaScript Tutorial: Multimedia

This tutorial explains how to use JavaScript in your Web pages and perform Multimedia operations: animate text and images, "blend" one image into another, do special effects, and sequence events on a Web page.
If you do not have a JavaScript editor you can download Platypus JavaScript Editor, or use a simple text editor, such as the Notepad. Using a specialised editor is easier than using Notepad, as it gives you syntax colouring, bookmarking, brace matching, function navigation and the extensible set of JavaScript & HTML templates.

The first JavaScript program displays the traditional "Hello World!" message. The code is given below:

<HTML>

<HEAD>
<TITLE>Lesson 1: Hello World</TITLE>

<SCRIPT LANGUAGE="JavaScript">

function main()
{
    alert("Hello, World!");
}

</SCRIPT>

</HEAD>

<BODY BGCOLOR="white">

<SCRIPT LANGUAGE="JavaScript">
    main();
</SCRIPT>

</BODY>
</HTML>

JavaScript functions must be placed inside the <SCRIPT> </SCRIPT> tags. The <SCRIPT LANGUAGE="JavaScript"> tells the browser that the script code that follows is JavaScript.

Note: The code in this tutorial has been tested with Internet Explorer. Because of the differences in Netscape implementation you might need to modify portions of the code to make it cross-browser.



[Home] [Products] [Support] [Download] [Orders] [Links]

Address: C Point Pty Ltd, 71 Williamson Road, Para Hills 5096, Australia
Phone: +618   8263 3623 Fax: +618   8396 1477
Web: http://www.c-point.com Email: c-point@c-point.com