Free HTML Tutorials   •   CSS   •   Popups tutorial   •   Frames Tutorials   •   Forms Tutorials   •   Beginners HTML Tutorials   • Advanced HTML Tutorials   • JavaScripts   • Free Web Page Tutorials   •   Free Downloads
OzWebLogo Advanced Section

JAVASCRIPTS 1
 
 

HANDY JAVASCRIPTS

You don't need a degree in Computer Science to use JavaScript. There are plenty of ready-made, free examples freely available on numerous web sites. I claim no originality of these scripts - I didn't write them. I just rewrite certain variables to use them the way I want. So I've gathered together several freely available scripts you might like to try in your pages.

On this page you will find:
  • A Time & Date Script
  • Hide your Email Address
in JavaScripts 2 are:
  • A Christmas Countdown Script
  • Rotating Banners Script
Download all 3 scripts and images  HERE  (jscripts.zip - 21KB) and unzip in your folder.

In JavaScripts 3 & 3a are:
  • a mini-tutorial on Popups
and in JavaScripts 4 & 4a are:
  • a Print page button
  • New browser window & close button

The scripts on JS 1 & 2 are available as zipped downloads. I suggest you use them rather than copying the code on the example pages. The files contained in the zip package have all the OzWeb headings, etc stripped from them so you can use them on a page. Also included are the four gif files you need for the banner script.

Follow the directions as to where the script and other elements go. Only change the parts referred to in the Alteration Tips following each script and be careful to maintain the layout of the actual script.

Just click the link below for the three scripts and save to the OzWeb folder your hard drive:

Java Scripts

The three files are:
  • bannercode.html
  • timecode.html
  • xmascode.html

To use them, unzip and copy to your OzWeb folder. Open in your text editor to read the code and make any alterations needed.

DO NOT ATTEMPT TO ALTER THEM EXCEPT WHERE INDICATED.

Be careful to retain all spaces, symbols, etc. Make sure you keep the original safe if you are altering any part of the code.



TIME & DATE

This will put the current time and date on your page. It will show up in your viewer's page as his or her own time. You can include it in your web page/s, probably somewhere near the top right or left would look best.

If you want to see what this will look like here is the example:   Time & Date.

Alteration Tips

Where the text "Good Morning ( afternoon/evening) appears you can change these words to your preference. Or have no words. I have seen "Greetings from Australia!", "Hi There!", and similar salutations. You can also change the font face, size and colour.

HIDE YOUR EMAIL ADDRESS

Stop spammers getting your email address from your web pages with this simple script.

    <script language=javascript>
    var name = "username@";
    document.write ("<a href=\"mailto:" + username + "goodweb.com\">Yourname at Goodweb</a>");
    </script>

Substitute your actual email address for "username" and "goodweb.com".



Next:  Javascript 2

Advanced Index

Help
Copyright ©1998-2008 OzWebWeaver.