How to create a custom mini page layout on mouse hover using visualforce page in salesforce?
public class PopupController {
public List leadList {get;set;}
public PopupTest () {
leadList =[select id,name,LeadSource,Status from Lead limit 10];
}
}
onmouseout="LookupHoverDetail.getHover('{!lead.Id}').hide();"
onmouseover="LookupHoverDetail.getHover('{!lead.Id}', '/{!lead.Id}/m?retURL=/{!lead.Id}&isAjaxRequest=1').show();">
{!lead.name}