Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 5,834
Likes: 20
UBBDev Owner
Time Lord
UBBDev Owner
Time Lord
Joined: Jan 2000
Posts: 5,834
Likes: 20
Author: Gizmo (James of VNC Web Design)

Requirements: UBB 7.x

About:
I had several suggestions of a way to allow users to resize fonts on a page without having to use thier browser's "view" settings; so I got an idea this morning while accessing a local government's site to utilize javascript to do just this...

A user will be presented with a dropdown menu (much like the Active Topics" menu) which allows them to select weather they'd like to increase the font size, decrease it, or return it to the normal size.

The downside however is that this has to be reset on every new page (I'm no good with cookies); so it can be used on a page by page basis at will.

Demo: As I don't have the need for it, I don't have a demo available, however I have included some example shots attached to this posting below.

Install Instructions:
See accessibility.txt within the attached zip file.

Usage Instructions:
The "dw_sizersettings.js" file contains some defaults if you'd like to change them, by default it will allow increased sizes by 2px, with a minimum of 8px and a maximum of 32px.

Be sure to set your "default font size" in this file as well, it will assume that it's 14px.

Credits:
The javascript files within where written by "www.dyn-web.com".
Attachments
2434-fontresizer.zip (5.41 KB, 55 downloads)
UBB.Accessability Archive
SHA1: 0489f9e89a145d24335e4775dc618cee626a0497
2435-non.gif (2.07 KB, 13 downloads)
Text Size Dropdown
2436-on.gif (2.45 KB, 13 downloads)
The opened dropdown.


UBBDev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.threads: My UBB Themes, My UBB Scripts
Sponsored Links
Joined: Mar 2006
Posts: 32
Beta Tester
Beta Tester
Offline
Joined: Mar 2006
Posts: 32
Nice, thanks Giz

Joined: Mar 2000
Posts: 21,080
Likes: 3
I type like Navaho
I type like Navaho
Joined: Mar 2000
Posts: 21,080
Likes: 3
Cool, thank you thumbsup


- Allen wavey
- What Drives You?
Joined: May 1999
Posts: 41
Power User
Power User
Offline
Joined: May 1999
Posts: 41
This is really cool!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 29379
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 9
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)