473,657 Members | 2,385 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.c o.uk/cgi-bin/counter/USERNAME/counter.num">
Jul 23 '05 #1
3 3364
Previously in comp.infosystem s.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.c o.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.c o.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.co m
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.c o.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
5235
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 = (window.ActiveXObject) ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); } if (x) {
2
2379
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 of "easy" way to go though my divs and apply leftmargin style on my divs so that indent? Please be aware of there can be an unlimited number of levels.
3
1755
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 client-side or server-side wasn't an issue. Recently I've been overhauling the code in order to pass transform to the client wherever possible, and I've hit two problems (i) How do I know whether the client can do transforms? Currently I'm only...
27
3334
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 spelled out for Java. For example, in my code blocks ( {} ) I always place the starting brace on the same line as the first line of code. For example: function myFunction {
4
3690
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", this is what I see: <table cellspacing="0" cellpadding="3" border="0" id="ctl00_MainContent_SystemsGV" style="font-family:Arial;font-size: 9pt;width:100%;border-collapse:collapse;"> <tr class="gvHeader">
3
4209
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 remove/turnoff all CSS styling inside a div?
3
3198
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 add simple styling to the scrollbar of the left hand frame of the page, but the styling i've applied isn't working for some reason. The site is at http://www.maguiresonline.co.uk/new_website/index.html It's the scrollbar in the middle of the...
40
2663
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 some forms were odd-looking, I noticed that indeed, fairly often the background is not applied and there is empty space inside a form I didn't ask for. This was rather puzzling until I realized that the observed cases seem to result from one...
2
2450
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 questions are:
6
1994
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 error on them now. The error occurs when I attempt a series of SQL statements wrapped in a TransactionScope(). It's executing against a different server, so this is where it's elevated to a distributed transaction.
0
8420
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8842
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8516
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6176
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
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 we have to send another system
2
1733
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.