Applying styling code to a CGI hit-counter

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Armand Karlsen

    Applying styling code to a CGI hit-counter

    Is it possible to apply the same styling code as is used on my web page to a
    CGI-based hit-counter, where the script is a pre-made one supplied by the
    ISP?

    The webpage in question is: http://www.zen62775.zen.co.uk

    The code used to siaplay the hit-counter is: <img
    src="http://homepages.zen.c o.uk/cgi-bin/counter/USERNAME/counter.num">


  • Mark Parnell

    #2
    Re: Applying styling code to a CGI hit-counter

    Previously in comp.infosystem s.www.authoring.html, Armand Karlsen
    <armand.karlsen @zen.co.uk> said:
    [color=blue]
    > Is it possible to apply the same styling code as is used on my web page to a
    > CGI-based hit-counter, where the script is a pre-made one supplied by the
    > ISP?[/color]

    Just stick a random number on the page and style it however you like.
    It'll be just as effective, and no cgi required.
    [color=blue]
    > The code used to siaplay the hit-counter is: <img
    > src="http://homepages.zen.c o.uk/cgi-bin/counter/USERNAME/counter.num">[/color]

    The only styles you can apply to an image are things such as border,
    margin and padding[1]. So if you're trying to make it look like the text
    on your page, the answer is no[2].

    [1] Well, you *can* apply styles such as color, background-color, etc.
    But since there's no text in it, they won't actually do anything (unless
    you've got images disabled/unavailable, in which case they will apply to
    the alt text (if any), assuming the UA actually supports styles).

    [2] Unless you use my first suggestion[3].

    [3] An even better idea would be to scrap the hit counter altogether.
    Its only effect is to scream "amateur!"

    --
    Mark Parnell

    Comment

    • Greg Schmidt

      #3
      Re: Applying styling code to a CGI hit-counter

      On Tue, 30 Nov 2004 23:51:55 -0000, Armand Karlsen wrote:
      [color=blue]
      > Is it possible to apply the same styling code as is used on my web page to a
      > CGI-based hit-counter, where the script is a pre-made one supplied by the
      > ISP?
      >
      > The webpage in question is: http://www.zen62775.zen.co.uk
      >
      > The code used to siaplay the hit-counter is: <img
      > src="http://homepages.zen.c o.uk/cgi-bin/counter/USERNAME/counter.num">[/color]

      Nope, that's an image. You're stuck with what they give you. My
      suggestion is to ditch it. Page counters are so 1997. Almost all hosts
      provide access to either the raw logs or the output of some log analysis
      utility, either of which can tell you essentially the same thing.

      If you *must* use this to track hits, you could wrap it in a div with
      display:none so that it doesn't show on the page (or does that prevent
      some browsers from even loading the image?) and make yourself a bookmark
      that takes you to the raw image when you want to check it.

      --
      Greg Schmidt gregs@trawna.co m
      Trawna Publications http://www.trawna.com/

      Comment

      • Beauregard T. Shagnasty

        #4
        Re: Applying styling code to a CGI hit-counter

        Armand Karlsen wrote:[color=blue]
        > Is it possible to apply the same styling code as is used on my web
        > page to a CGI-based hit-counter, where the script is a pre-made one
        > supplied by the ISP?
        >
        > The webpage in question is: http://www.zen62775.zen.co.uk[/color]

        What hit counter?
        [color=blue]
        > The code used to siaplay the hit-counter is: <img
        > src="http://homepages.zen.c o.uk/cgi-bin/counter/USERNAME/counter.num">[/color]

        Oh! It's down there below my browser window! And I can't scroll to
        find it. Heh, your 'menu' panel is too tall for anyone with an 800x600
        or less browser.

        --
        -bts
        -This space intentionally left blank.

        Comment

        Working...