Click to See Complete Forum and Search --> : novice needs help


alipali
07-12-2003, 10:29 AM
Am trying to get a counter working on my home page. Thing is, I'm using a template design that allows you to cut n paste html in to pre-formed building blocks. When i paste this code (for the counter):

<a href="http://www.htmlcounter.com/?ref=script" target="_blank"><img src="http://www.admo.net/php-bin/counter.php3?id=script&dd=36" BORDER="0" alt="This counter provided for free from HTMLcounter.com!"><br>
<font face="Verdana" size="-3">HTMLCounter.com</font> </a>

...in to the window it comes up with "& nbsp" showing on the finished page.

I think I have to have a head and body code and put the counter code inside the body, but I have no idea what that code should be or what I do or don't need.

I'd appreciate any help with this.

Thanks in advance

Al

Khalid Ali
07-12-2003, 10:35 AM
from the looks of it,I can not see anything wrong with the code you posted,there might be something else thats screwing up your code,better if you post more code

alipali
07-12-2003, 10:48 AM
Thanks for the reply.

That's the only code I have. I've tried other codes for counters, they all work except for that damn "& nbsp" thing appears.

I think it's to do with the page builder that helps you build the site that i'm using. It just asks you to insert html or a picture or text, or whatever.

The counter code is meant to go into existing pages--I don't really have that.

That's all I can say--which might be completely wrong;)

Thanks again

DaveSW
07-12-2003, 10:56 AM
Make your page first, then open the page in notepad and paste it in just before the </body> tag at the end.

alipali
07-12-2003, 11:12 AM
Dave, there's no way I can do that with the kind of bespoke web site builder program that came with the template I bought(was from Network Solutions).

Each page has building blocks and each block is like a page in itself. Effectively, I need the code for a single page with just the counter inside of it.

If i was doing that, would this be correct, or something similar?

<head>
HAVE NO IDEA WHAT GOES IN HERE!
</head>
<body><!counter code start!>
<a href="http://www.htmlcounter.com/?ref=script" target="_blank"><img src="http://www.admo.net/php-bin/counter.php3?id=script&dd=36" BORDER="0" alt="This counter provided for free from HTMLcounter.com!"><br>
<font face="Verdana" size="-3">HTMLCounter.com</font> </a><!counter code end!>
</body>

Can you or anyone fill in the blanks?

Thanks again, really appreciate the help.

DaveSW
07-12-2003, 11:17 AM
I think you need to enclose it in something else.
<html>
<head>
<title>Title to go in bar at top</title>
</head>
<body><div><p><!counter code start!>
<a href="http://www.htmlcounter.com/?ref=script" target="_blank"><img src="http://www.admo.net/php-bin/counter.php3?id=script&dd=36" BORDER="0" alt="This counter provided for free from HTMLcounter.com!"><br>
<font face="Verdana" size="-3">HTMLCounter.com</font> </a><!counter code end!></p> </div>
</body>
</html>
I also suggest you download a proper editor like html kit from www.chami.com

DaveSW
07-12-2003, 11:27 AM
oops - I've edited my post - closed tags in wrong order.

Rakshi
07-12-2003, 05:30 PM
Heres a really good code from http://fastwebcounter.com/

<!-- Start FastWebCounter.com -->
<a href="http://www.fastwebcounter.com"><script src="http://fastwebcounter.com/counter.php?s=www.yoursite.com"></script></a><a href=""><img src="http://fastwebcounter.com/secure.php" height=2 width=1 border=0></a>
<!-- End FastWebCounter.com -->