Adding Effects


    There are many different types of effects you can add to you page some for fun and some to draw you visitors attention to a particular item on the page. These effects can be created by many different means. for example applets, Java Script (The clock at the top of the page), Animated JIFs (The logo at the top of the page), background music or sounds, flashing text (Netscape), popup windows etc. I will discuss how to do some of it here.


    Applets Applets are small bits of code which contain the Parameters to run a compiled script which is downloaded along with the page by your browser ie. class files and images. Applets can easily be built using applet compileing programs which can be found as freeware or purchased on line.

   The Applet sample on the right is produced by adding the code below to the body of the HTML code.

It tells your browser to down load:

a class file called doganim
and two images (SPIDERX2.gif and eh4_2.jpg).

    It also contains parameters such as:

size (Width=76 height=121)
background colour (#000000) if no background image
pause between frames (500)
movement variables (1,2).

    The browser then uses the class file to produce the animated image you see on the right side of this table.

Sample
Applet
This is the applet written in the Body of the HTML document.

< HTML>
< HEAD>
< TITTLE>< /TITTLE>
< /HEAD>
< body>

< applet code="doganim" width=76 height=121>
< param name="reguser" value="GUEST">
< param name="serialid" value="BDEB">
< param name="imagelist" value="SPIDERX2.gif">
< param name="move" value="1,2">
< param name="pause" value="500">
< param name="enddelay" value="0">
< param name="bounce" value="true">
< param name="bg" value="#000000">
< param name="background" value="eh4_2.jpg">
< /applet>

< /BODY>
< /HTML>

Links to software sites:



    Java Script
      Java Script is a code which works with your browser to preform many interactive functions and effects. The code is written so as to be unable to perform any malicious functions on the users computer. This Java Script sample below simply looks into your computer to read the clock on your mother board and display the time in your browser.
      Java Script can also be used to check if on line forms are completed properly before you send it. It can be use for animations, popup windows, animated buttons, colour changes, display different page backgrounds at different times of day or greetings and much more.


    This Java Script sample below simply looks into your computer to read the clock on your mother board and display the time in your browser as seen on the right.
The point at which you place the span id tag in you page body is where the clock will be displayed on you page.
< HTML>
< HEAD>
< TITTLE>< /TITTLE>

< style>
.clock{ font-family:arial;font-size:14px;font-weight:bold; color:#000099;}
< /style>
< script language="Javascript">
function getime() {
var date= new Date();
var h = date.getHours();
var m = date.getMinutes();
var s = date.getSeconds();
var ampm="A.M.";
if (h > 11) { ampm="P.M." }
if (h > 12) { h-=12 }
if(m<10){ m="0"+m }
if(s<10){ s="0"+s }
clock.innerHTML=h+ ":" +m+ ":" +s+ " " +ampm;
setTimeout("getime()",100)
}
< /script>


< /HEAD>

< body onload=getime();>

< span id="clock" class="clock">< /span>

< /BODY>
< /HTML>


OK enough learnin` here`s some Java Script Links*
Click here   Java Script   ←