| Free HTML Tutorials • CSS • Popups tutorial • Frames Tutorials • Forms Tutorials • Beginners HTML Tutorials • Advanced HTML Tutorials • JavaScripts • Free Web Page Tutorials • Free Downloads |
|
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:
In JavaScripts 3 & 3a are:
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:
To use them, unzip and copy to your OzWeb folder. Open in your text editor to read the code and make any alterations needed. 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.
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
|