Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
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.


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

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
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
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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)