Теперь работает,но только в firefox ))
$("a[href='#unshare']").live("click",function(){
var sharedId = $(this).attr("alt");
var thisId = $(this).attr("id");
$.post("unshare.php", {sharedId:sharedId , thisId:thisId});
var newA = '<a id="' + thisId +'" href="#share" ><img title="add to base" src="images/eye.png" /> </a>';
$(this).parent().html(newA);
return false;
});
$("a[href='#share']").live("click",function(){
var idGlobal = $(this).attr("id");
var span = $(this).parent();
$.post("share.php", {idGlobal:idGlobal},function(data){
var qw = data;
var regV = /\d+/;
qw = qw.match(regV);
var newA = '<a id="' + idGlobal +'" href="#unshare" alt="' + qw +'" ><img title="dell from base" src="images/eye1.png" /> </a>';
span.html(newA);
});
return false;
});