By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,649 Members | 2,154 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,649 IT Pros & Developers. It's quick & easy.

Applying styling code to a CGI hit-counter

P: n/a
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.co.uk/cgi-bin/counter/USERNAME/counter.num">
Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Previously in comp.infosystems.www.authoring.html, Armand Karlsen
<ar************@zen.co.uk> said:
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?
Just stick a random number on the page and style it however you like.
It'll be just as effective, and no cgi required.
The code used to siaplay the hit-counter is: <img
src="http://homepages.zen.co.uk/cgi-bin/counter/USERNAME/counter.num">


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
http://www.clarkecomputers.com.au
Jul 23 '05 #2

P: n/a
On Tue, 30 Nov 2004 23:51:55 -0000, Armand Karlsen wrote:
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.co.uk/cgi-bin/counter/USERNAME/counter.num">


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 gr***@trawna.com
Trawna Publications http://www.trawna.com/
Jul 23 '05 #3

P: n/a
Armand Karlsen wrote:
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
What hit counter?
The code used to siaplay the hit-counter is: <img
src="http://homepages.zen.co.uk/cgi-bin/counter/USERNAME/counter.num">


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.
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.