| |||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||
HomeWeb DevelopmentShort ContentsFor Beginners...Introduction Changes from 3.2 Document Attributes ...that are available for all BODY objects Text Organisation tools Forms Images Sounds Style Sheets Special Effects - Javascript Search Engines Full ContentsFor Beginners...IntroductionOther HTML sitesPutting pages online Tips For beginners Download this Guide Changes from 3.2DocumentSpecifying LanguageStructure The <HEAD> section ...General attributes ...Title ...Setting the Base address ...Queries : ISINDEX ...META tags ...Character sets ...<LINK>s The <BODY> tag ... General Attributes ...Document Colours ...Background Attributes...that are available for all BODY objectsTextHeadingsFonts Preformatted text Change text direction 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 ...Marking Modifications Miscellaneous ...Abbreviation ...Acronyms ...Addresses ...Use Bigger/Smaller fonts ...Citations ...Code ...Definitions ...Keyboard input ...Sample ...Teletype ...Variables ...XMP Organisation toolsCommentsHorizontal lines DIV and SPAN Links ...<LINK>s ...within pages ...Image maps Frames ...Naming and Targeting ...Inline Frames Tables ...example tag ...Rows ...Cells ...Captions ...Head, Body & Foot Lists ...Definition lists ...Directory Lists ...Menu Lists ...Ordered Lists ...Unordered Lists Embedding special files The Object Element FormsInputs and buttonsSelection menus Element Labels Fieldsets and legends ImagesSoundsStyle Sheetsspecifying versionindividual elements in the HEAD section specifying media types external sheets cascading sheets media-dependant defaults HTTP headers Special 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. 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. | ||||||||||||||||||||||||||||||||||||||||||||