hiding the hit counter

How do I hide the hit counter, so that Only I can view it(and telling me to use afont color the same as my backround is not the right answer)
tnicholsonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MandakaCommented:
Tnicholson,


     I while back I actually deliberated over this exact question.  How to use the FP hitcounter, and not give away to the visitors how many hits I've got.

     Before I could actually test my answer, my hosting service began providing hit data using marketwave.com services.

     But here is what I came up with, and be warned, its VERY primative!  heh

     Set your site up as a frame.  Only have the bottom frame be one pixel in height with that page having the counter, and the rest of your site being the upper component of the frame.  If you match up backgrounds, and remove resize as well as the frame border, no one should be the wiser (unless they view your HTML source).  When your visitors see the site, they will load a hit on the counter but not be able to see it.  Then all you have to do is load the specific frame page directly (not through the frame) and wala!  You get to see the hit counter!

     Like I said....very primative, but it should work.

(it might work even better if you set the bottom frame height to zero....but I don't think you can do that)


Chuck
0
tnicholsonAuthor Commented:
chuck

sounds like an excellent Idea exept how do I load the frame with the hit counter on it, and if it makes a difference I will be probably using the hit counter component that comes with FP 2000

Todd
0
MandakaCommented:
Tnicholson,

     What I propose is a frameset with two frames.  A "main" one and a "counter" one.  Only no one will be able to see the second because the frameset configuration will prevent it from being seen.

Here is what you do.  Name your main page "main.htm" and create another page named "counter.htm" and place your counter on it.  Create a third page, but cut and paste the code below  completly as the HTML for this third page.  This will be your frameset.  It needs to be named "index.htm" or something that will be the page people load when they view your site.

<html>

<head>
<title>My Web Site</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<frameset rows="*,0">
  <frame name="main" src="main.htm">
  <frame name="counter" scrolling="no" noresize target="main" src="counter.htm">
  <noframes>
  <body>

  <p>This page uses frames, but your browser doesn't support them.</p>

  </body>
  </noframes>
</frameset>

</html>

Again, your primary page will be the "main" page, your counter will be located on the "counter" page, but people will need to load the "index" page so they will load a hit on the counter.

So...    The URL for folks will be http://www.yourdomain.com/index.htm  But when YOU want to see the counter, load http://www.yourdomain.com/counter.htm and you will see it.  

The weakness here is that anyone that looks at the "index.htm" source will see the address where your counter is located.  So you will only be hiding the counter from basic or casual visitors.


Chuck
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tnicholsonAuthor Commented:
exellent answer thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.