ipbr21054
07-29-2010, 06:46 PM
Hi,
I have a script that i need a little tweak to.
If you are able to write script then it should be very easy for you.
I obviously dont and asking for your help.
The script below is for a click counter which the hypertext link then opens up another web page.
I am using this script to find out how many people look at this other page.
My problem is that it does not keep a record of the hits etc.
Once you close the browser the next time you look at the results which a box is shown next to the link it reads 0 again.
Below is the script in question.
Thanks
<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">
</p>
<div align="center">
</div>
</body>
</html
I have a script that i need a little tweak to.
If you are able to write script then it should be very easy for you.
I obviously dont and asking for your help.
The script below is for a click counter which the hypertext link then opens up another web page.
I am using this script to find out how many people look at this other page.
My problem is that it does not keep a record of the hits etc.
Once you close the browser the next time you look at the results which a box is shown next to the link it reads 0 again.
Below is the script in question.
Thanks
<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">
</p>
<div align="center">
</div>
</body>
</html