| |||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||
HomeWeb DevelopmentShort ContentsFor Beginners...Introduction Document Text Organisation tools Forms Images Sounds Special Effects - Javascript Search Engines Full ContentsFor Beginners...IntroductionOther HTML sitesPutting pages online Tips For beginners Download this Guide DocumentStructureThe <HEAD> section ...Title ...Setting the Base address ...Queries : ISINDEX ...META tags ...<LINK>s The <BODY> tag ...Document Colours ...Background TextHeadingsFonts Preformatted text Special Characters Character Formatting ...Blink ...Bold ...Italics ...Underline ...Strikethrough ...Superscript ...Subscript Paragraph formatting ...Blockquote ...Line Breaks ...New Paragraph ...Stop Line Breaks ...Word Break ...Centre text Miscellaneous ...Addresses ...Use Bigger/Smaller fonts ...Citations ...Code ...Keyboard input ...Sample ...Teletype ...Variables ...XMP Organisation toolsCommentsHorizontal lines Links ...<LINK>s ...within pages ...Image maps Frames ...Naming and Targeting Tables ...example tag ...Rows ...Cells ...Captions Lists ...Definition lists ...Directory Lists ...Menu Lists ...Ordered Lists ...Unordered Lists Embedding special files FormsImagesSoundsSpecial Effects - JavascriptEvents...onAbort ...onBlur ...onChange ...onClick ...onError ...onFocus ...onLoad ...onMouseOver ...onMouseOut ...onReset ...onScroll ...onSelect ...onSubmit ...onUnload Basic Commands ...Changing the status bar ...Opening a new window ...changing page being viewed Search Engines |
Javascript Special EffectsThis section is dedicated to achieving all of those special effects that you see on some pages, such as customising the status bar when the mouse moves over an object. This is by no means a guide to Javascript - if you want that, visit the Netscape Site for a really thorough and easy to read guide. Javascript is available on Netscape and Internet Explorer, as well as some other browsers. Note that Javascript commands tend to be case sensitive, so type them exactly as they appear!EventsThis page concentrates on "Events" - things that the user does to result in an action, such as moving or clicking the mouse, scrollbars, etc. Events can be used with many HTML objects such as links, forms, and even the document body- I can't be more specific but try it out for yourself on the object of your choice. To assign an action to an event, place the following within the opening tag of the object :[EventName]="[javascript code] ; return true"If multiple commands are used, they should be seperated by a semi-colon ( ; ). For example : onmouseover="document.writeln('Hello World!') ; return true"Some of the available events are:
Some Basic CommandsChanging the status barwindow.status='(your custom message)'opening a new windowwindow.open ('(file address)','(window name)','toolbar=yes|no,location=yes|no, diectories=yes|no,status=yes|no,menubar=yes|no, resizeable=yes|no,scrollbars=yes|no,width=???,height=???')NOTE: NO spaces between the list of window attributes!! changing page being viewed<BODY
onLoad="window.location='(address to load)')"}>
(C)opyright 2001-2008, Geoff Knagge.
Continued use of this site indicates your agreement to the Conditions of use and Privacy Policy. | ||||||||||||||||||||||||||||||||