Forum Moderators: open
<script>
$(document).ready(function() {
$("a").click(function() {
href = $(this).attr("href");
anchor = $(this).val();
logthis("clicked",href,anchor);
});
$("a").hover(
function () {
href = $(this).attr("href");
anchor = $(this).val();
logthis("mouseover",href,anchor);
},
function () {
href = $(this).attr("href");
anchor = $(this).val();
logthis("mouseout",href,anchor);
}
);
});
function logthis(action, href, anchor) {
// some ajax function to do what you want with the info?
}
<script>