![]() |
Property![]() ![]() ![]() ![]() ![]()
A property is an individual state of an object, typically represented as a variable. In the squirrel example the color represents a property of a squirrel. An object's properties can include any of the valid JavaScript variable types.
A variable's type is the kind of value it holds. Several basic variable data types are offered by JavaScript, including string, Boolean, integer and floating Point decimal. JavaScript utilises loose casting, which means a variable can assume different types at will. For example: squirrel.color = "black" squirrel.color = 12 both colour values are valid. You can concatenate strings with integer, which will yield a string. For example: val = 1 result = val + " is my rank " // results in " 1 is my rank" To access object properties, use the object's name, followed by a period and the name of the property squirrel.color Assigning a new value to the property will change it:, squirrel.color = "green"
|
|
Domain NamesDHTML Document Object Model Features of Dynamic HTML HTML Versus DHTML Netscape's Vision of DHTML Microsoft Vision of DHTML Cascading Style Sheets(CSS) Inline Style Sheets Embedded Style for a Page Linked Cascading Style Sheet Text Specific Style AttributesCSS Attributes Assigning Classes Java Script Style Sheets(JSSS) Object Property Functions Methods
Creating Style Sheets with JSSS New JSSS Methods Working Layers Positioning the Layer Using More than One Layer Moving a Layer Around on the Page Events
The mouseOver and mouseOut Events The mouseMove Event The Keyboard Events The mouseDown and mouseUp Events The dragDrop Event Error Event Form Event The Script Tag Changing Text Color Inline Text Attribute Changes Text Dynamically Changing StylesExample of Dynamically Changing Style Dynamically Changing Content HTML Replacement Changing Text Content An Example of HTML Graphics ReplacementWeb DesignWeb HostingE Commerce |
| Home | Web Hosting | Web Design | Sitemap |
| Copyright (C) 2007. Web Domain design hosting. All rights reserved. |