Current location: Hot Scripts Forums » General Web Coding » JavaScript » Newbie requires script tweak


Newbie requires script tweak

Reply
  #1 (permalink)  
Old 07-29-10, 08: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 09:52 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 08-05-10, 09:45 AM
Yeronimo Yeronimo is offline
Newbie Coder
 
Join Date: Aug 2010
Location: Nijmegen, Netherlands
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Hi,

Do you have a webserver that can run ASP or PhP scripts? Or do you have to do this with Javascript only?

/Yeroon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Great Script with lots of applications, but.. script_guy Script Requests 2 07-12-08 07:36 PM
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 11:17 AM
Newbie looking for a image Gallery Script tjbeil Script Requests 0 04-24-07 11:28 PM
newbie looking for a simple script macrosky Script Requests 1 10-07-05 02:42 AM
newbie at java script! plz help Fumetsu JavaScript 0 02-11-05 04:31 PM


All times are GMT -5. The time now is 01:32 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.