Inline Text Attribute Changes

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email
Any dynamic change to a Web page that you create solely within a single HTML tag is called an inline change. As an example, consider the listing below which dynamically changes the font size of a heading.

<HTML>

<HEAD>
<TlTLE>TeSt</TITLE>

</HEAD>
<BODY BGCOLOR=#FFFFF>
<HI onmouseover="this.style~fontSize=128" onmouseout="this.style.fontSize=32">

Hello World

</H1>

</BODY>

</HTML>

The onmouseover attribute sets up an event to trigger when a reader places his, or her mouse over the contents of the heading. When the mouse rests,heading, the text of the heading changes to 128 points in size, The on mouseout sets up an event to trigger when a reader moves the mouse heading. When the mouse leaves the heading area, the text of the changes to a much smaller 32 points.

To change text attributes dynamically within an HTML tag, you take advantage of built in features of the Dynamic HTML object model. The this keyword to the HTML element identified by the tag within which the this word is contained.



Domain Name Search

www.


Copyright (C) 2007. Web Domain design hosting. All rights reserved.