![]() |
Java Snippets |
|
|
Here
are a few JavaScripts that we hope you`ll find useful for your own Website
:
(we`ll be adding more so check back) |
| javascript
& cookie test - see if your browser has javascript and cookies enabled
and for help resolving possible browser problems. |
|
| coloured
scroll bars |
place
in the <head> of your document :- <STYLE
type="text/css"> |
| text
link rollovers |
place in the <head> of your document :- <STYLE> |
| set focus in a form |
place in the <head> of your document :- <script> <BODY onLoad= "focusonfirst () "> where
`form1` is the name of your form, and `first` is the name of the first
field in your form. |
|
digital clock
|
place in the <head> of your document :- <SCRIPT
LANGUAGE="JavaScript"> and in the body of your document :- <BODY bgcolor="#FFFFFF" onLoad="StartClock24()"> where you want the clock to appear :- <form
name=clock> |
| mailto: | when
you add a mailto: link on your website, make it even more professional,
by setting the subject of the e-mail ... use this :- <a href="mailto:info@yoursite.com?subject=The subject of this email">mail here </a> |
|
today`s date |
place in the <head> of your document :- <SCRIPT
LANGUAGE="JavaScript"> function
customDateString() { where you want the date to appear :- <SCRIPT
LANGUAGE="JavaScript"> |
|
copyright©2008 web-informed.com
|