Font-size buttons

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mason A. Clark

    Font-size buttons

    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,1 26,15"
    href="http://niemanwatchdog. org/index.cfm?fonts ize=up">

    <area shape="rect" coords="127,0,1 43,14"
    href="http://niemanwatchdog. org/index.cfm?fonts ize=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

  • Andy Dingley

    #2
    Re: Font-size buttons

    Mason A. Clark wrote:[color=blue]
    > and (2) is this idea useful?[/color]

    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"

    Comment

    • Chris Beall

      #3
      Re: Font-size buttons

      Mason A. Clark wrote:
      [color=blue]
      > 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,1 26,15"
      > href="http://niemanwatchdog. org/index.cfm?fonts ize=up">
      >
      > <area shape="rect" coords="127,0,1 43,14"
      > href="http://niemanwatchdog. org/index.cfm?fonts ize=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?[/color]
      (snip)[color=blue]
      > This page button trick may be more convenient.
      >
      > Mason C
      >[/color]
      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

      Comment

      • Mason A. Clark

        #4
        Re: Font-size buttons

        Thanks for the instructive responses.

        Mason C

        Comment

        • Stephen Poley

          #5
          Re: Font-size buttons

          On Thu, 06 Oct 2005 09:42:26 GMT, Mason A. Clark
          <masoncERASETHI S@ix.netcom.com > wrote:
          [color=blue]
          >I came upon this trick: a usemap with two buttons for
          >changing the page's font size:
          >
          >============[/color]
          ....[color=blue]
          >============
          >
          >Two questions: (1) how does it work? New pages?
          >What's the question mark ( "cfm?font.. ." ) do?
          >
          >and (2) is this idea useful?[/color]

          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).
          [color=blue]
          >The user *may* have the ability to change font size or
          >do a zoom in the browser.[/color]

          AFAIK *every* graphical browser has that sort of ability (as long as the
          author doesn't screw things up by using absolute units).
          [color=blue]
          >This page button trick may be more convenient.[/color]

          I doubt it.

          --
          Stephen Poley


          Comment

          • Stan Brown

            #6
            Re: Font-size buttons

            On Thu, 06 Oct 2005 09:42:26 GMT in
            comp.infosystem s.www.authoring.html, Mason A. Clark favored us
            with...[color=blue]
            > I came upon this trick: a usemap with two buttons for
            > changing the page's font size:
            >
            > and (2) is this idea useful?[/color]

            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
            DRAGON222 menjadi pusat resmi terunggul Sportsbook Digital. Sistem cepat respon, tampilan sangat lancar anti lag, dan kemungkinan menang terjadi pada tekad kuat anda.

            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:

            Comment

            • Alan J. Flavell

              #7
              Re: Font-size buttons

              On Thu, 6 Oct 2005, Stephen Poley wrote:
              [color=blue]
              > On Thu, 06 Oct 2005 09:42:26 GMT, Mason A. Clark
              > <masoncERASETHI S@ix.netcom.com > wrote:
              >[color=green]
              > >The user *may* have the ability to change font size or
              > >do a zoom in the browser.[/color]
              >
              > AFAIK *every* graphical browser has that sort of ability (as long as the
              > author doesn't screw things up by using absolute units).[/color]

              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).
              [color=blue][color=green]
              > >This page button trick may be more convenient.[/color]
              >
              > I doubt it.[/color]

              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.

              Comment

              Working...