HighDots Forums  

Font-size buttons

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss Font-size buttons in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mason A. Clark
 
Posts: n/a

Default Font-size buttons - 10-06-2005 , 04:42 AM






I came upon this trick: a usemap with two buttons for
changing the page's font size:

============
<map name="fontmap" id="fontmap">

<area shape="rect" coords="111,1,126,15"
href="http://niemanwatchdog.org/index.cfm?fontsize=up">

<area shape="rect" coords="127,0,143,14"
href="http://niemanwatchdog.org/index.cfm?fontsize=down">

</map>

============

The page itself is: http://niemanwatchdog.org/index.cfm

Two questions: (1) how does it work? New pages?
What's the question mark ( "cfm?font..." ) do?

and (2) is this idea useful?

The user *may* have the ability to change font size or
do a zoom in the browser.
This page button trick may be more convenient.

Mason C


Reply With Quote
  #2  
Old   
Andy Dingley
 
Posts: n/a

Default Re: Font-size buttons - 10-06-2005 , 06:01 AM






Mason A. Clark wrote:
Quote:
and (2) is this idea useful?
No.



It's done server-side, and it might be done by serving a single new
line of CSS on demand, not even changing the "page" itself. However it
still breaks the notion of font-size being a "client side" control,
which is very important to maintain.

You might really want font size buttons added to a page and there are
good usability reasons why you might, if you have an audience that
needs it and doesn't know there's already a menu option. If you do
though, keep it client-side and link to the browser's menu functon (I
think this can already be done for Mozillas). For other browsers, pop
up a message and say "Look under your text size menu for a handy
feature"



Reply With Quote
  #3  
Old   
Chris Beall
 
Posts: n/a

Default Re: Font-size buttons - 10-06-2005 , 01:02 PM



Mason A. Clark wrote:

Quote:
I came upon this trick: a usemap with two buttons for
changing the page's font size:

============
map name="fontmap" id="fontmap"

area shape="rect" coords="111,1,126,15"
href="http://niemanwatchdog.org/index.cfm?fontsize=up"

area shape="rect" coords="127,0,143,14"
href="http://niemanwatchdog.org/index.cfm?fontsize=down"

/map

============

The page itself is: http://niemanwatchdog.org/index.cfm

Two questions: (1) how does it work? New pages?
What's the question mark ( "cfm?font..." ) do?

and (2) is this idea useful?
(snip)
This page button trick may be more convenient.

Mason C

Mason,

It works by sending a modified page from the server. Following the main
style section is a second <style> section that sets font-size to 'small'
or 'x-small' etc. It appears that this value is modified, then the
entire page is resent by the server (based on the time it takes to respond)

A .cfm filetype indicates use of the Cold Fusion development tool.

? is a delimiter between the end of the URL and attached data. When you
click on one of the links, the entire string is sent to the server,
which can look separately at the data being passed (the part after the
?) and determine what you want it to do. In this case fontsize=up.

Note that the server is setting an ABSOLUTE value (small, large, etc.)
whereas the user interface is a RELATIVE value (up, down). This implies
that the server knows what font size is currently in use. That is done
by setting a cookie on the user's system (more overhead) to remember the
currently-in-use font size. Each time you change sizes using this
interface, the cookie is fetched to see what that current size is. Of
course this means the function will not work if the user has disabled
cookies.

I would not view this as useful or more convenient than using the
font-size capability of your browser.

Chris Beall



Reply With Quote
  #4  
Old   
Mason A. Clark
 
Posts: n/a

Default Re: Font-size buttons - 10-06-2005 , 02:47 PM



Thanks for the instructive responses.

Mason C

Reply With Quote
  #5  
Old   
Stephen Poley
 
Posts: n/a

Default Re: Font-size buttons - 10-06-2005 , 02:55 PM



On Thu, 06 Oct 2005 09:42:26 GMT, Mason A. Clark
<masoncERASETHIS (AT) ix (DOT) netcom.com> wrote:

Quote:
I came upon this trick: a usemap with two buttons for
changing the page's font size:

============
....
============

Two questions: (1) how does it work? New pages?
What's the question mark ( "cfm?font..." ) do?

and (2) is this idea useful?
I suggest that something along the lines of
http://www.xs4all.nl/~sbpoley/main/adjust.html is a lot more useful.

(Having written that page a long time ago I suddenly got a bunch of
messages thanking me for it recently. Apparently it briefly got up to
first position in Google).

Quote:
The user *may* have the ability to change font size or
do a zoom in the browser.
AFAIK *every* graphical browser has that sort of ability (as long as the
author doesn't screw things up by using absolute units).

Quote:
This page button trick may be more convenient.
I doubt it.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/


Reply With Quote
  #6  
Old   
Stan Brown
 
Posts: n/a

Default Re: Font-size buttons - 10-06-2005 , 02:59 PM



On Thu, 06 Oct 2005 09:42:26 GMT in
comp.infosystems.www.authoring.html, Mason A. Clark favored us
with...
Quote:
I came upon this trick: a usemap with two buttons for
changing the page's font size:

and (2) is this idea useful?
Not unless the web site visitor is too stupid to operate his or her
own browser.

And in that case, they're probably too stupid to understand your
content anyway.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you


Reply With Quote
  #7  
Old   
Alan J. Flavell
 
Posts: n/a

Default Re: Font-size buttons - 10-06-2005 , 03:11 PM



On Thu, 6 Oct 2005, Stephen Poley wrote:

Quote:
On Thu, 06 Oct 2005 09:42:26 GMT, Mason A. Clark
masoncERASETHIS (AT) ix (DOT) netcom.com> wrote:

The user *may* have the ability to change font size or
do a zoom in the browser.

AFAIK *every* graphical browser has that sort of ability (as long as the
author doesn't screw things up by using absolute units).
What's more: once they've found it and learned how to use it, it works
on every web site (modulo the issue of absolute units, anyway).

Quote:
This page button trick may be more convenient.

I doubt it.
Having to use a different user interface on each and every web site
which offers such a feature is not exactly the most productive way to
proceed, after all.

Sounds like something that would please marketing, though:- offering
the customer something that they'd already got, but with a competitive
difference that, unlike the one the customer already had, this one
wouldn't work with anyone else's products. Let me join you in a
grumble.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.