Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Hit counter
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedHit counter

 Post Reply Post Reply Page  <12
Author
jamie.townsend View Drop Down
Groupie
Groupie


Joined: 07 December 2007
Location: England
Status: Offline
Points: 114
Direct Link To This Post Posted: 13 May 2008 at 9:26am
code taken from w3schools.com

<%
Set FS=Server.CreateObject("Scripting.FileSystemObject")
Set RS=FS.OpenTextFile(Server.MapPath("counter.txt"), 1, False)
fcount=RS.ReadLine
RS.Close

fcount=fcount+1

'This code is disabled due to the write access security on our server:
'Set RS=FS.OpenTextFile(Server.MapPath("counter.txt"), 2, False)
'RS.Write fcount
'RS.Close

Set RS=Nothing
Set FS=Nothing

%>

<html>
<body>
<p>
This page has been visited <%=fcount%>  times.
</p>
</body>
</html>

Back to Top
Videoediting View Drop Down
Newbie
Newbie
Avatar

Joined: 30 July 2008
Status: Offline
Points: 9
Direct Link To This Post Posted: 07 August 2008 at 1:26pm
 void Application_Start(object sender, EventArgs e)
    {
        // Code that runs on application startup
count++;

    }
You have to access this count in your page

Cheers,

SPBig%20smile
http://www.videoediting-direct.co.uk
Back to Top
emily12 View Drop Down
Newbie
Newbie


Joined: 08 August 2008
Status: Offline
Points: 8
Direct Link To This Post Posted: 28 August 2008 at 10:08am
In the front page software  tool is   available .   you can add counter by using  this tool.



Edited by emily12 - 17 September 2008 at 8:15am
Back to Top
davemac View Drop Down
Newbie
Newbie


Joined: 04 September 2008
Status: Offline
Points: 1
Direct Link To This Post Posted: 04 September 2008 at 6:12am
I keep it really simple. I cheat. What I do is use a program called coffee cup web form builder . I create a web form with only a submit button on it. I rename the button to something like "free anti-virus" program & place it on my web site. When some clicks the button it takes them to a free antivirus site like avg free and it emails me that someone pressed the button. People can't resist free stuff.
 
This might be a bit confusing to you but take a look at my business site www.4420115.com.
 
If you want me to make you a button to place on your site. Simply tell me what you want the button to say -- ex. free desktop wallpaper or whatever & give me address of the site you want your visitors to be taken to. It can also simply be a link to another page on your web site. If you want me to build it give me your email address & I will configure the button to send you an email when someone clicks the button .
 
Or if you want to download the free trial coffee cup web form & tinker with it I can answer any questions you may have.
 
Good Luck
Paris Geek
Back to Top
dimpi View Drop Down
Newbie
Newbie


Joined: 03 July 2009
Status: Offline
Points: 6
Direct Link To This Post Posted: 04 July 2009 at 7:26am
Go for a google search and you'll get free codes for lots of free Hit counters. All you need to do is just paste this code inside your website's html code and It'll be all.
Back to Top
Gopal86 View Drop Down
Newbie
Newbie


Joined: 17 July 2010
Status: Offline
Points: 1
Direct Link To This Post Posted: 17 July 2010 at 1:40pm
The above code helps me a lot in implementing hit counter.


Thanks.......
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.