The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Looking for a JavaScript code for counting clicks
What I want is a javascript I could add to links, where if they click on a link it adds 1 point to userfieldX. The catch is that they could only get the point once per day (Not necessarly 24 hours, but if that's how it would have to work, so be it). So they could only click the link once a day.
Could someone here create that and if so would it be hard to create? :erm: |
#2
|
|||
|
|||
Ok, is it possible?
|
#3
|
||||
|
||||
Java is not JavaScript.
|
#4
|
|||
|
|||
Thanks. I should have known that.
|
#5
|
||||
|
||||
To answer your question, yes, it is possible.
|
#6
|
|||
|
|||
Thanks, now I'm off to google how I might accomplish that.
|
#7
|
||||
|
||||
For that, you should add an onclick event to your link.
Your tag shall look like that : Code:
<a href="your_url" onclick="my_js_function();">URL_TEXT</a> |
#8
|
|||
|
|||
Thanks vbdev.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|