Archive for October, 2007

M MARQUEE object (Object/HTML) The MARQUEE object (Business web hosting)

Wednesday, October 24th, 2007

M MARQUEE object (Object/HTML) The MARQUEE object is only supported by MSIE and provides means of quickly and easily generating a moving ticker display inside the window area. This can be accomplished with Netscape using layers and some interval timed JavaScript function calls to scroll the layer. The MSIE MARQUEE object is a little more aware of Font Metrics than your average script access can achieve. This means making the MARQUEE bounce back and forth when the text hits the edge of the extent rectangle is a lot easier to accomplish in MSIE than in Netscape. See also: Element object, Input.accessKey Property JavaScript JScript N IE Opera DOM HTML Notes accessKey 3.0 + 4.0 + - behaviour 3.0 + 4.0 + - bgColor 3.0 + 4.0 + - dataFld 3.0 + 4.0 + - dataFormatAs 3.0 + 4.0 + - dataSrc 3.0 + 4.0 + - direction 3.0 + 4.0 + - height 3.0 + 4.0 + - hspace 3.0 + 4.0 + - loop 3.0 + 4.0 + - scrollAmount 3.0 + 4.0 + - scrollDelay 3.0 + 4.0 + - tabIndex 3.0 + 4.0 + - trueSpeed 3.0 + 4.0 + - vspace 3.0 + 4.0 + - width 3.0 + 4.0 + - Method JavaScript JScript N IE Opera DOM HTML Notes start() 3.0 + 4.0 + - stop() 3.0 + 4.0 + - Event name JavaScript JScript N IE Opera DOM HTML Notes onAfterUpdate 3.0 + 4.0 + - onBlur 1.1 + 3.0 + 3.0 + 4.0 + 3.0 + Warning onBounce 3.0 + 4.0 + - onClick 1.0 + 3.0 + 4.0 + 3.0 + 3.0 + 4.0 + Warning onDblClick 1.2 + 3.0 + 4.0 + 4.0 + 3.0 + 4.0 + Warning onDragStart 3.0 + 4.0 + - Table continued on following page 1387

Web hosting domains - JavaScript Programmer’s Reference Here are some example target

Tuesday, October 23rd, 2007

JavaScript Programmer’s Reference Here are some example target values: . _parent . _self . _top . _blank . Window name . Frame name See also: , Anchor.target, BASE.target, Form.target, Url.target MARQUEE object (Object/HTML) An object that represents a HTML tag. Availability: JScript 3.0 Internet Explorer 4.0 Inherits from: Element object IE myMARQUEE = myDocument.all.anElementID IE myMARQUEE = myDocument.all.tags(”MARQUEE”) [anIndex] IE myMARQUEE = myDocument.all[aName] -myMARQUEE = myDocument.getElementById(anElementID) -myMARQUEE = myDocument.getElementsByName(aName) [anIndex] JavaScript syntax: -myMARQUEE = myDocument.getElementsByTagName (”MARQUEE”)[anIndex] HTML syntax: anIndex A reference to an element in a collection aName An associative array reference Argument list: anElementID The ID value of an Element object Object properties: accessKey, behavior, bgColor, dataFld, dataFormatAs, dataSrc, direction, height, hspace, loop, scrollAmount, scrollDelay, tabIndex, trueSpeed, vspace, width Object methods: start(), stop() Event handlers: onAfterUpdate, onBlur, onBounce, onClick, onDblClick, onDragStart, onFilterChange, onFinish, onFocus, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onResize, onRowEnter, onRowExit, onScroll, onSelectStart, onStart 1386

Business web site - M Map.name (Property) Map.name (Property) The value

Tuesday, October 23rd, 2007

M Map.name (Property) Map.name (Property) The value of the NAME=”…” HTML tag attribute. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: String primitive JavaScript syntax: -myMap.name Objects are identified either by the NAME=”…” HTML tag attribute or by the ID=”…” HTML tag attribute. Netscape Navigator shows a marginal preference for the name property while MSIE seems slightly better disposed towards the IDproperty. However, in many cases both browsers support either technique and in some cases will locate items named with either tag as if they existed in a single namespace. See also: IMG.useMap Map.target (Property) The target window or frame to which a map applied. Availability: JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: String primitive JavaScript syntax: -myMap.target HTML syntax: This yields the value of the TARGET attribute in an , or tag. You can assign a new value to this property so that the URL will be directed to a different window or frame. 1385

JavaScript Programmer’s Reference Event name JavaScript (Adult web hosting) JScript N

Monday, October 22nd, 2007

JavaScript Programmer’s Reference Event name JavaScript JScript N IE Opera DOM HTML Notes onClick 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onDblClick 1.5+ 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onHelp 3.0 + 4.0 + Warning onKeyDown 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onKeyPress 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onKeyUp 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onMouseDown 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onMouseMove 1.5 + 3.0 + 6.0 + 4.0 + 4.0 + Warning onMouseOut 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onMouseOver 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning onMouseUp 1.5 + 3.0 + 6.0 + 4.0 + 3.0 + 4.0 + Warning Inheritance chain: Element object, Node object Map.areas[] (Collection) A collection of Area objects belonging to the map object. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Property/method value type: Collection object JavaScript syntax: -myMap.areas The objects instantiated by tags which are part of this image map, are collected together and accessible as a collection. The collection object is referred to by this property. Property attributes: ReadOnly 1384

M Map object (Object/HTML) Map (Best web hosting site) object (Object/HTML)

Sunday, October 21st, 2007

M Map object (Object/HTML) Map object (Object/HTML) An object that represents a tag. Availability: DOM level 1 JavaScript 1.5 JScript 3.0 Internet Explorer 4.0 Netscape 6.0 Inherits from: Element object IE myMap = myDocument.all.anElementID IE myMap = myDocument.all.tags(”MAP”)[anIndex] IE myMap = myDocument.all[aName] -myMap = myDocument.getElementById(anElementID) -myMap = myDocument.getElementsByName(aName) [anIndex] JavaScript syntax: -myMap = myDocument.getElementsByTagName (”MAP”)[anIndex] HTML syntax: anIndex A reference to an element in a collection aName An associative array reference Argument list: anElementID The ID value of an Element object Object properties: Event handlers: Collections: name, target onClick, onDblClick, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp areas[] The tag in the HTML document source is a container for the tags. These all belong to a parent Mapobject. This is a means of componentizing a client-side image map and building complex non-rectangular shaped areas. See also: A object, Area object, Element object, Location object Property JavaScript JScript N IE Opera DOM HTML Notes name 1.5 + 3.0 + 6.0 + 4.0 + 1 + - target 1.5 + 3.0 + 6.0 + 4.0 + - 1383

Web design tools - JavaScript Programmer’s Reference The constant time values giving

Sunday, October 21st, 2007

JavaScript Programmer’s Reference The constant time values giving milliseconds per hour, minute and second are used to multiply each argument. The results are then summed to provide an equivalent time in milliseconds. No range checking is performed according to the ECMA standard so some degree of overflow can be expected. Although this is called an operator in the standard, its behavior is more like that of a function. It is not part of the formal language implementation, but is a useful function to have available and can be simulated by writing a script-based function. It is documented in the standard to assist in the algorithmic breakdown of the Date method handlers. The result is a time value since midnight measured in milliseconds. See also: Cast operator, Date object, Date(), Date.UTC(), Time range, Time value Cross-references: ECMA 262 edition 2 section 15.9.1.11 ECMA 262 edition 3 section 15.9.1.11 (HTML Tag Attribute) The frame or window to target by default with the links in an image map. This is a non-standard tag attribute that is used as a means of linking frames and area maps. You should use instead of for portable applications. Warnings: . Because this is a non-standard HTML tag attribute, most implementations will not support the TARGETattribute on a tag. In that case, apply the TARGET attribute to the tags in the map instead. See also: Anchor.target, Form.target, Map.target, Window.frames[] Deprecated usage: Yes 1382

M MakeDay() (Time calculation) MakeDay() (Time calculation) (Make web site)

Saturday, October 20th, 2007

M MakeDay() (Time calculation) MakeDay() (Time calculation) A date and time algorithm. Availability: Property/method value type: ECMAScript edition 2 Number primitive The MakeDay() operator calculates a number of days from its three arguments. Each argument must be an ECMAScript number value. All of the arguments must be numeric and finite values. The values should be integers. If they are not then the result will be NaN. The month number is used as a lookup to establish the number of days in the preceding months. This will also take the year number into account because a leap year calculation may be necessary. The standard does not mandate any range checking, however it would be sensible to include range checks in the implementation of this functionality. Although this is called an operator in the standard, its behavior is more like that of a function. It is not part of the formal language implementation, but is a useful function to have available and can be simulated by writing a script-based function. It is documented in the standard to assist in the algorithmic breakdown of the Date method handlers. The result is a day value in milliseconds since the base date. See also: Cast operator, Date object, Date(), Date.UTC(), Time range, Time value Cross-references: ECMA 262 edition 2 section 15.9.1.12 ECMA 262 edition 3 section 15.9.1.12 MakeTime() (Time calculation) A date and time algorithm. Availability: Property/method value type: ECMAScript edition 2 Number primitive The MakeTime()operator calculates a number of milliseconds from its four arguments. Each argument must be an ECMAScript number value. All of the arguments must be numeric and finite values. The values should be integers. If they are not then the result will be NaN. 1381

Web hosting servers - JavaScript Programmer’s Reference In a server-side environment, a

Friday, October 19th, 2007

JavaScript Programmer’s Reference In a server-side environment, a script may be used as the result of a CGI call. In that case, a main() with passed parameters is a more useful facility. In some implementations, the main()function may be used to make the language accessible to C programmers. Languages often borrow from one another and JavaScript borrows heavily from C language and Java. The exact form of the main()function and possibly its name will be implementation dependent and you should check the documentation for the interpreter just make sure it behaves the way you expect. The result of calling the main() function will be implementation specific, but probably an integer. See also: argc parameter, argv parameter, Execution context, Execution environment, Host environment, Host object MakeDate() (Time calculation) A date and time algorithm. Availability: Property/method value type: ECMAScript edition 2 Number primitive The MakeDate()operator calculates a number of milliseconds from its two arguments. Both arguments must be ECMAScript number values. All of the arguments must be numeric and finite values. The values should be integers. If they are not then the result will be NaN. The day argument is multiplied by the milliseconds per day and the time argument is added to the result. The sum of the two is a millisecond coded date and time value. Although this is called an operator in the standard, its behavior is more like that of a function. It is not part of the formal language implementation but is a useful function to have available, and can be simulated by writing a script-based function. It is documented in the standard to assist in the algorithmic breakdown of the Date method handlers. The result is a date value in milliseconds since the base date. See also: Cast operator, Date object, Date(), Date.UTC(), Time range, Time value Cross-references: ECMA 262 edition 2 section 15.9.1.13 ECMA 262 edition 3 section 15.9.1.13 1380

M mailto: URL (Request method) mailto: URL (Web design software)

Friday, October 19th, 2007

M mailto: URL (Request method) mailto: URL (Request method) Activates the mail client to send an e-mail message. Open up a mail client application or use the browser’s built-in mail client to send a message to the indicated recipient. Netscape supports the predefiniton of the Subject:, Cc: and Bcc: fields in the mailto: URL. This is illustrated in the example. This may not work on other browsers or JavaScript-capable mail clients. Note that you can leave the spaces as they don’t need to be escaped in the Subject text. In some versions, you can also define the Body text for the e-mail by appending the Body operator. This is also shown in the example. Warnings: . This is only allowed under script control if the script has the UniversalSendMail privilege. Example code: Send Mail Send Mail Send Mail Send Mail Send Mail See also: javascript: URL, mailbox: URL, nethelp: URL, UniversalSendMail, URL main() function (Definition) The main entry point to a procedural language program. Property/method value type: Implementation defined Although JavaScript in many circumstances does not have a main() function, in some applications of the language it may be necessary. By implication, the main() function of a JavaScript is the global code that is present in a web page in the