Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 5,808
Likes: 12
Gizmo Online Tapedshut OP
UBB.Dev / UBB.Wiki Owner
Time Lord
OP Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,808
Likes: 12
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".

Attached Images
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.

UBB.Dev - 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
G
Beta Tester
Offline
Beta Tester
G
Joined: Mar 2006
Posts: 32
Nice, thanks Giz

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Cool, thank you thumbsup


- Allen wavey
- What Drives You?
Joined: May 1999
Posts: 41
F
Power User
Offline
Power User
F
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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,551
Posts293,824
Members13,841
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 356
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 26
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,808
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 66
Gizmo 12
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20201211)
Responsive Width:

PHP: 5.4.45 Page Time: 0.042s Queries: 24 (0.015s) Memory: 3.2807 MB (Peak: 3.6351 MB) Data Comp: Zlib Server Time: 2021-01-27 10:59:22 UTC
Valid HTML 5 and Valid CSS