View Single Post
  #1 (permalink)  
Old 07-29-10, 07:39 AM
ipbr21054 ipbr21054 is offline
New Member
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Newbie requires script tweak

Hello.
I am new and have been looking through the scripts but cant find what i am after.
I currently have a script on my web site that has a hyperlink to another page.I would like to know how many people click on the link to view the other site in question.
The script i have at the moment does not record the hits..
If you click on the link 10 times then 10 is shown in the result box which is on the screen but when i close the browser then open it again then 10 has now been reset back to 0
The script i am using is shown below,please can you advise of what i can add to it so it will record each click of the link and show/store the hits on the screen.
Failing that could you point me in the direction of a script on this site that would do the job.
Thanks
HTML Code:
<HTML>
<HEAD>
<TITLE> Clicker Counter Thingamajig </TITLE>
<script type="text/javascript">
var clicks = 0;
function linkClick(){
document.getElementById('clicked').value = ++clicks;
}
</script>
</head>

<body>


<a onclick="linkClick()" href="http://www.connells.co.uk/detail.asp?type=0&src=property&cs=88&bs=WOT&br=-1&prop=100003&min=150000&max=-1&bed=3&page=6&id=WOT302735">CLICK HERE</a>

clicked <input id="clicked" size="3" onfocus="this.blur();" value="0" > times.



</BODY>
</HTML>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-gb">
<title>About Me</title>
</head>

<body bgcolor="#FFFFFF">
<p align="center">
&nbsp;</p>


<div align="center">


&nbsp;</div>

</body>

</html

Last edited by job0107; 08-05-10 at 08:52 AM.
Reply With Quote