Dynamically Changing Text content

Domain Hosting image
Web Hosting
Dedicated server
ssl certificate
Web Design image
Email
Putting the Script on a Web Page

In theory, scripts do not belong within the <BODY></BODY>tag pair, but instead belong within the <HEAD></HEAD> tag pair. In practice, Web authors put<SCRIPT></SCRIPT> tag pairs anywhere between the <HTML></HTML> tags. Web browser parsers can handle scripts anywhere within the HTML file.

Changing Text Attributes

You change text attributes to emphasize text. Sometimes, a certain emphasis represents specific information. For example, in a list of current stock quotes, red stock values can indicate stocks that have lost value recently, and green stock values can indicate stocks that have gained value. Black quote might not have changed in a certain time period.

Changing Text Size

For a phone listing, dynamically changing text is very helpful for a reader. As he / she dials the phone number, he / she can focus on the one item in the list that looks different from all the others. Let us take an example where the ondblclick event is implemented. When a reader double clicks on a name, the selected list item's font size changes to 32 points.

To create dynamically changing text you first create paragraph tags around each item you want to change independently, and add an ID attribute and event attribute to each paragraph. Finally, create a script function that matches the same name as the paragraph event attribute value. The script function contains a single line that assigns a new value to the appropriate style property. the user's browser to display, they cannot control which fonts are installed on the user's system.



Domain Name Search

www.


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