Purchase Advertising On AWT
 Upload & Sell Your Software
 Upload & Sell Your eBook
 Enter The AWT Control Panel  Contact Applied Web Tools
 Sell Your eBook @ The PDF Store  Password Troubles? Click Here!
Knowledge Center
Want to write for Applied Web Tools? Send your Writer's Query to
Editor@AppliedWebTools.net for details.
HTML
Reference
&
Tutorial
CSS
Reference
&
Tutorial
DOM
Reference
&
Tutorial
JavaScript
Reference
&
Tutorial
50+ Programming Examples
Use HTML, CSS, DOM & JavaScript Together
Misc. Essays & Documents
You'll Find Just About Anything In Here
50+ Web Page Constructions
Learn the Art of Using HTML, CSS, DOM & JavaScript Together
 Changing Background Colors
 Event Triggering With onLoad
 Disabling The Right Click
 DOM Driven Color Changing
 Switching Images
 innerHTML Attribute Access
 Change With innerHTML
 Changing Positions
 Change Position With onMouseMove
 Change Text Position
 Interactivity Skills
 Type-writing A Message
 Auto-changing Text Size
 Making Text Scroll
 Blinking Text
 Simple Form Authentication
 Change Background Color Of An INPUT
 Change Text Color Of An INPUT
 Change Background Image Of An INPUT
 Select All Checkboxes
 Select Color Of The Submit Button
 Change Text Color Of A Submit Button
 Insert Background Image To A Button
 Change Color Of Drop Down List
 Change Text Color Of A Drop Down List
 Change Color Of A TEXTAREA
 Change The Text Color Of A TEXTAREA
 Insert An Image Into A TEXTAREA
 Change The Size Of An Image
 Change The Source Of An Image
 Change The Position Of An Image
 Change The Background Image
 Moving Images Around The Page
 Drag & Drop An Image
 A Simple Image Viewer
 A Shaking Image
 A Digital Clock
 Drop Down List Link
 Top Drop Down Menu
 Always On Top Menu
 Inset Border Buttons
 A Description Generating Menu
 An Image Generating Menu
 A Horizontal Sliding Menu
 A Click Horizontal Sliding Menu
 Returning Cursor Co-ordinates
 Making Text Follow The Cursor
 Attaching An Image To The Cursor
bigger text

Applying a textual formatting application is very easy in the most current versions of the DHTML specifications. Simply use any CSS rule that has been included in the DOM specifications. In this case, we’re altering the sizing of text. We’ll take it a step further and introduce a timer and a maximum text size. Examine the below construction:

<html>
<head>

<script type="text/javascript">
txtsize=0;
maxsize=100;

function writemsg() {
if (txtsize<maxsize) {
document.getElementById('msg').style.fontSize=txtsize;
txtsize++;
timer=setTimeout("writemsg()",10);
}
}

function stoptimer() {
clearTimeout(timer);
}
</script>

</head>

<body onload="writemsg()" onunload="stoptimer()">

<p id="msg">W3Schools!</p>

</body>
</html>


The style.fontSize attribute is used to change the size of the text. There are many style rules that can be used in this exact same location in this exact way to change many different textual formatting options. However, you are not limited to applying only one textual formatting option per function - may also apply groups of rules to construct the look and feel you’re thinking of.

The timer was introduced to provide for older browsers that take a little bit of time to apply a text change and redraw the document. The value given is 10 and is stated in milliseconds. This gives the legacy browser time to make the change and be ready to redraw. Otherwise the browser will throw an error when it tries to apply the formatting change.
I do not employ cookies or tracking devices of any kind