Document Text Sizer Script, Scrips, Java, DHTML, Express
Contact
 


Quick search

 



Scripts - DHTML

Scripts - DHTML (new)

Web Developer Blog

Web Developer Blog (new)

Scripts and Applications

Ajax
ASP
ASP.NET
C and C++
CFML
CGI and Perl
Flash
Java
JavaScript
PHP
Python
XML

Software Downloads

Linux

Windows

Mac

Mobile

Drivers

DHTML Scripts - Detail

 

Document Text Sizer

Date added: 0000-00-00 00:00:00
FF1+ IE5+ Opr7+

Document Text Sizer

Description: Sometimes the text size you've specified for your webpage isn't suitable to the viewer, depending on his browser configuration or OS. This useful script by Taewook uses Dynamic CSS to let the viewer himself modify the text size of the page on demand, by clicking on an Increase or Decrease Font Size link. Now that's a kind of personalization your viewers may just appreciate!

This script is most appropriate for webpages styled using CSS or a minimal of deprecated HTML tags, though it can also affect text sized using explicit <font size="x"> tags (see Customization below). Compatibility wise, a DOM enabled browser is required for the script to take affect- IE5+/NS6+/Opera 7+ etc.

Demo: Click the below links:

+ Larger Font | + Smaller Font


Directions: Developer's View

Step 1: Add the following code to the <HEAD> section of your web page:

Select All

The above script references an external .js file. Download this file here (right click, and select "Save As").

Step 2: Now set up the two links that will increase and decrease your text size. The following will do nicely:

Select All

And that's it!

Customization

There are two areas within the script you can make changes.

First, within Document-Text-Sizer/textsizer.js, you can add additional HTML tags the script should affect. Lets say your webpage's text are all controlled using explicit <font size="x"> tags. You can add "font" as a tag the script should affect.

Second, inside the code of Step 2, you may substitute "body" with another tag name or even ID name, to localize the text size manipulation to only the specified containers.

 

Leave a comment




(optional)

What is 7-3?




0 comments


 

Related DHTML Scripts

Google Search Terms highlighter
Date Added: 1999-11-30
-User Submitted This script highlights any terms on your page used by a visitor coming from Google to locate it, similar to a popular feature found in Google Toolbar. It's a great way to reta...
The Matrix Text effect
Date Added: 1999-11-30
-User submitted Requiring little introduction, this creative DHTML script renders The Matrix effect on any short piece of text! Digital letters gradually drop down to form the phrase of your...
In-your-face message greeting
Date Added: 2007-04-11
-User submitted Steve, a surfer, created this great, cross-browser greeting script that will sure catch your surfer's attention, if nothing else! The greeting message zooms in and expan...
3D spinning message
Date Added: 2007-04-11
-User submitted 3D Spinning Message uses VML to display/rotate messages on the top of the page via a circular animation. Everything from the size of the "circle" to the colors of the text can be ...
Neon Lights Text
Date Added: 2007-04-16
-User submitted Bring the age old technique of attracting attention on the streets to your webpage! This DHTML script applies a neon light effect to any text...very cool....
Neon Lights Text II
Date Added: 2007-04-16
-User submitted Based on the original Neon Lights script, this version applies a "moving light" to any text. Two different colors can be used concurrently for the effect...
Rainbow Text
Date Added: 2007-05-12
-User submitted Utilizing IE 5's proprietary behavior functionality, Chris' script allows you to apply a live rainbow effect to any block of text, with multiple text/page supporte...
Flying letters
Date Added: 2007-05-12
-User submitted Animate your site's header into view, one letter at a time, with this one-of-a-kind script!...
Nudging Text
Date Added: 2007-05-12
-User submitted This attention craving text contains letters that constantly nudge one another....
Roller Coaster Text
Date Added: 2007-05-12
-User submitted This interesting text effect animates any text in a roller coaster style!...
Sine Scrolling Text script
Date Added: 2007-05-12
-User submitted Using some sophisticated math calculations, not to mention great DHTML programming, Mark has created this visually stunning sine scrolling text animation. The text flows...
Wave text
Date Added: 2007-05-12
-User submitted Add a watery, wavy effect to a header text with this mesmerizing script!...
Text Animator
Date Added: 2007-05-12
-User submitted Text Animator is a great cross-browser text effect. It fades in and out infinite text messages, with each message optionally being clickable....
Dissolving text effect
Date Added: 2007-05-12
-User submitted This is a great DHTML script that rotates and displays any number of messages, with a unique dissolving effect applied during each rotation. Very impressive......
Pulsating Text
Date Added: 2007-05-12
-User submitted Use this script to render an "aura" around your text, accomplished using IE's multimedia filters and scripting....

Last 20 Scripts

 
1. phPay
phPay is a shop and catalog system based on PHP and SQL. Fea
2. Random Numbers
Use this script to pick 16 random numbers. Lottery, for fun,
3. Image Gallery Pro
Image Gallery Pro is Image Gallery Software/ Photo Gallery S
4. WWWBoard
WWWBoard is an ASP-based discussion board system that works
5. ImageInfo
To optimize your site's load time you should always code in
6. VideoPlayer Xavi
Creating your own customized videoskin is sometimes a big pr
7. PHP file sharing
PHP Script sharing files with others (site owners are welcom
8. How to make a Dynamic Image
This is a useful way of creating images that change dependin
9. WEBO
WEBO is targetted at individuals and small to medium size or
10. Account Expiration Control
This Free Software joomla! component allows you to offer pai
11. PhotoIndex Application
PhotoIndex is a PHP application that takes a large number of
12. Contact Box v2
Not use db or anything it is useless contact for your websit
13. Gchats Tiny Mp3 Player
Gchats Tiny Mp3 Player 2.0 is the best choice for having mul
14. Ceilidh
Ceilidh is a platform-independent engine for collaboration a
15. Jevonweb Guestbook
This is a very easy to use guestbook program. It includes a
16. Andrey's Applets Set
Cool applets set with 9 different applets. Fire simulation
17. RanCon
"RanCon" is a very basic random content insertion script.
18. Better Whois Script
A Perl/CGI script that uses HTML templates so you can totall
19. Demis Web Map Server
The Demis Map Server is a professional web mapping component
20. Bingoware
The software allows the user to generate a given number of B

DownloadTube Editor Reviews

 
1. 001Micron USB Drive Recovery Review
This USB drive data recovery software easily recovers the da...
2. Tag Backup & Restore
Tag Backup & Restore - a robust and efficient audio tag arch...
3. Data Export - DBF2DB2
Hxtt Data Export - DBF2DB2 is a program to import DBF (dBASE...
4. Dokmee Professional
Every company has document records, whether it is paper base...
5. Arcus Odyssey
Long time ago, an evil sorceress Castomira decided to conque...
6. Mind Chest
Mind Chest is an entertaining game in which you can test and...
7. Free Escape From Paradise Screensaver
With this free Escape From Paradise Game screensaver you wil...
8. Mind Your Card
This wonderful Card Mind Reader game will reveal the very ca...
9. MSG Viewer Pro - EML and MSG Viewer
MSGViewer Pro is a powerful yet easy to use viewer, converte...
10. Fractalius plug-in
This plug-in creates unusual, eccentric artworks in a single...

Software Reviews Full List



Top Downloads

 
1. Canon PIXMA iP1200 Printer Driver
2. Canon PIXMA iP1000 Printer Driver
3. Realtek ALC/ 262/ 265/ 268/ 660/ 861/ 880/ 882/ 883/ 885/ 888 Audio
4. Genius Eye 110 Webcam Driver
5. Canon PIXMA iP1300 Printer Driver a
6. Realtek RTL8139C(L)+/RTL8139D(L)/RTL8100(L)/RTL8130/RTL8139B(L) Driver
7. Canon PIXMA iP1200 Printer Driver d
8. Canon PIXMA iP1600 Printer Driver
9. INTEX LAN Card D RTL
10. Realtek RTL8100B(L)/RTL8100C(L)/RTL8101L/RTL8139C(L) Driver XP
11. Biostar M6VLB Bios
12. TomTom HOME
13. Canon LaserShot LBP-1210 Printer Driver
14. Canon PIXMA MP210 MP Drivers
15. MSI KT3V Bios c
16. Canon i560 Printer Driver
17. Mercury KPC-6225V
18. Canon i-SENSYS LBP2900 Printer Driver R
19. dmg2iso
20. Soyo SY-6BA+IV Bios