Click here to get back home

Font-size buttons

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Font-size buttons Mason A. Clark 10-06-2005
Posted by Mason A. Clark on October 6, 2005, 9:42 am
Please log in for more thread options


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


Posted by Andy Dingley on October 6, 2005, 4:01 am
Please log in for more thread options


Mason A. Clark wrote:
> 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"


Posted by Stan Brown on October 6, 2005, 3:59 pm
Please log in for more thread options


On Thu, 06 Oct 2005 09:42:26 GMT in
comp.infosystems.www.authoring.html, Mason A. Clark favored us
with...
> 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/2003/05/05/why_we_wont_help_you

Posted by Chris Beall on October 6, 2005, 6:02 pm
Please log in for more thread options


Mason A. Clark wrote:

> 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


Posted by Mason A. Clark on October 6, 2005, 7:47 pm
Please log in for more thread options


Thanks for the instructive responses.

Mason C

Similar ThreadsPosted
Order of buttons? October 6, 2005, 9:37 am
Help With RSS Red Feed Buttons October 21, 2006, 3:56 pm
Forward and Back buttons? May 14, 2005, 8:40 am
What would cause radio buttons to not be clickable? May 1, 2006, 3:56 pm
Image overlay for non square buttons September 8, 2004, 11:52 pm
Multiple groups of radio buttons with same name? September 30, 2004, 7:32 am
Multiple submit buttons problem August 18, 2006, 6:46 am
Using keyboard keys to activate buttons May 6, 2008, 3:30 pm
DIV element buttons - how do you set rollover effects correctly? August 2, 2006, 9:56 am
Header and Buttons, wrong position with Firefox February 27, 2008, 12:38 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap