I'm doing a hovercard plugin for my site but have a problem with getting user id.
profile urls can be;
hxxp://mysite.com/?p=profile&id=1
hxxp://mysite.com/?p=profile&id=1&page=2
hxxp://mysite.com/?p=profile&id=1&v=wall
etc..
How can I get profiles' id by javascript Regexp Replace?
$(document).ready(function () {
var timer;
$('a[href*="hxxp://mysite.com/?p=profile"]').hover(
function () {
if(timer) {
clearTimeout(timer);
timer = null
}
timer = setTimeout(function() {
// profile_id
// and get id's hovercard content here
},1000);
},
function () {
if(timer) {
clearTimeout(timer);
timer = null
}
$('.HovercardOverlay').empty();
}
);
});