Javascripts for the beginners.

The scripts are written in RED.

1) A status bar message:

a small message on the status bar of your browser, the only thing
you have to do is to put the script in your body tag.

script:
<body onLoad="window.defaultStatus=This is my page">


2) Status bar on mouse over :

If you look in the status bar of your browser you can see the text
"Click here to go to the next page"

script:
<A HREF="newpage.htm" onMouseOver="window.status='Click Here to go
to the Next Page!';return true" /A>


3)Pop up box :

did you see the alert message when you entered this site?
If you didn't, then just reload this page and you'll see what I mean
Here is how it's made:

<script language="JavaScript">
alert("Type Your Message Here");
</script>



4) On mouse over :

1 On mouse over:

<a href="document.html"
onmouseover="document.home.src='picture2.gif'"
onmouseout="document.home.src='picture1.gif'"
img src="picture1.gif" name="home">
</a>


5) A counter till as example the millenium :

<SCRIPT LANGUAGE="JavaScript">
var now = new Date();
var then = new Date("january 1, 2000");
var gap = then.getTime() - now.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write("Only " + gap + " days \'till the millenium begins");
</SCRIPT>

Here is the result :


6) Hi and Bye when you come and leave

Press reload to see the result.
Put this text after your BODY :

<BODY onLoad="alert('Hi!')" onUnload="alert('Bye!')">

My personal favorite JavaScripts :

Background fade out
Scroll bar
Scrolling text
Typewriter status bar
Story ( my favorite )

These where the javascripts. I tried them and they work if you
use them in the proper way. So enjoy.
EXPLORE ALL MY PAGES :


counting since 13/7/99

Back to Home page

This page hosted by GeoCities Get your own Free Home Page


Copyright © 1998 Linda's Page. All Rights Reserved.