473,503 Members | 12,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.co.uk/cgi-bin/counter/USERNAME/counter.num">
Jul 23 '05 #1
3 3354
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5227
by: Stephen | last post by:
I have the following that outputs an xml file to a div using ajax: <script type="text/javascript"> function ajaxXML(url,control_id){ if (document.getElementById) { var x =...
2
2370
by: lars.gundersen | last post by:
Hi, I need to apply some indenting (margin) on my divs. I have a forum which uses a tree structure so that the users will be able to see which user replies to what topic. Is there some kind...
3
1744
by: Simon Brooke | last post by:
I've been doing XSL transforms, converting XML to HTML, server side since 2000. In those days, clients which could do the transformation client side didn't exist, so whether to transform...
27
3294
by: Tom Cole | last post by:
I'm starting to do more quantity of javascript coding and thought this might be a good time to investigate code styling. I primarily develop in Java and currently use the code styling techniques...
4
3682
by: ashkaan57 | last post by:
Hi, I am working on an asp.net application that has a grid. When rendered, grids are translated into tables. I am having some problems applying styles to the this table. When I do a "View Source",...
3
4194
by: Momomo | last post by:
Hi, I am having a problem with a control which is caused by a style on the page which I am not able to trace. If I use the control in a page without any styling it looks ok. Is there a way to...
3
3181
by: nicky77 | last post by:
Hi, before you say it i know frames are bad practice - but i'm developing dynamic content on a site which has already been designed, so alas there's no option but to use them. Anyway, I just want to...
40
2613
by: Jukka K. Korpela | last post by:
My basic style sheet has a distinctive background and border for forms, to make the structure clearer and to make it visually evident what belongs to a form. However, as people complained that...
2
2444
by: shapper | last post by:
Hello, I am styling the labels on a section of my page as follows: label {float: left; width: 6.5em;} Now I want to remove this styling from a label that has the class "Message". Mu...
6
1986
by: =?Utf-8?B?UGF1bCBQcmV3ZXR0?= | last post by:
Hi - I have 4 webservers in my webfarm. All Win2k3 web edition. Before yesterday, none of them were service packed. I have now applied SP2 to two of them, and I'm getting a very weird MSDTC...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7296
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7364
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.