![]() |
Using Inline Style in DHTML![]() ![]() ![]() ![]() ![]()
An inline style is included with the tag it affects. It doesn't affect any other HTML tags on the page, whether they're the same type or not. For example, if you place an italic style with an < H1 > tag, the style will not apply to any other <H1 > tags on the page.
<HTML> <HEAD> <TITLE>An Inline Style</TITLE> </HEAD> <BODY bgcolor= "#FFFFFF">,
<SPAN STYLE = "font size: 18pt" id=" span18"> This came from a SPAN tag with a style, </HTML>
When you want to change these styles with Dynamic HTML, they're represented in the object model with object. style. fontsize, where object is the name of the id attribute for the tag. In this case, it's p14.style.fontSize and spanl8.style.fontSize
|
|
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. |