I am sure there is a simple answer to this but I do not know it. I inserted the code for a stats counter. Was instructed to open the file on disk, view in browser and go to view, then source and insert the code appropriately. I did so and it works fine. However, even though it is an invisible counter, it still shows up temporarily when I open the page. I want to remove the code so I went back to the source, deleted the code and saved. However, it has not gone. How do I get rid of the counter please?
It is on my index page http://www.alisonfhamilton.com and is Stats Counter

Recommended Answers

All 5 Replies

Do you have two counters there or is this part of the one you wish to remove? if so delete it,

<div id="Layer13" style="position:absolute; width:200px; height:37px; z-index:13; left: 134px; top: 579px"><!-- BEGIN WebSTAT Activation Code -->
<script type="text/javascript" language="JavaScript" src="http://hits.webstat.com/cgi-bin/wsv2.cgi?63052"></script>
<noscript> <a href="http://www.webstat.com"> <img src="http://hits.webstat.com/scripts/wsb.php?ac=63052" border="0" alt="Web Stats - Free Realtime Web Statistics Tracker & Counter"></a>
</noscript> <!-- END WebSTAT Activation Code --></div>

and

<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=392987;
var sc_partition=1;
</script>

<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img src="http://c2.statcounter.com/counter.php?sc_project=392987&amp;amp;java=0" alt="web counters" border="0"></a> </noscript>
<!-- End of StatCounter Code -->

Cheers

It is the second one (StatCounter) I want to delete but how?? As I explained, I thought I knew how to by doing as I said I did in my post...went into source, deleted that code, saved and then it was still there when I reloaded. In Firefox, it will not even let me delete. In IE it does allow me to delete and save but reappears on reload. Ahhhh!!!

go to the file on your hard drive, right click on it, and see if you can open it with notepad. If not, go to notepad and navigate to the file. Either way, remove the extra code.

Does that help?

No, but thank you so much for the advice...for some reason I could not open the file in Notepad but I did find the HTML source in Dreamweaver and thereby was able to remove the counter. I am so ignorant but it is good to learn something new!

Thanks again!

Congratulations - I think that's called taking the initiative!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.