<apex:page standardController="Account" extensions="HoverActivityHistory1">
<apex:pageBlock title="Activity History List">
<apex:pageBlockTable value="{!Taskvalues}" var="acc">
<apex:column headerValue="{!$ObjectType.Task.Fields.Subject.Label}">
<a href="/{!acc.id}"
id="lookup{!acc.id}opp4"
onblur="LookupHoverDetail.getHover('lookup{!acc.id}opp4').hide();"
onfocus="LookupHoverDetail.getHover('lookup{!acc.id}opp4', '/{!acc.id}/m?retURL=/{!acc.id}&isAjaxRequest=1').show();"
onmouseout="LookupHoverDetail.getHover('lookup{!acc.id}opp4').hide();"
onmouseover="LookupHoverDetail.getHover('lookup{!acc.id}opp4', '/{!acc.id}/m?retURL=/{!acc.id}&isAjaxRequest=1').show();">
{!acc.Subject}
</a>
</apex:column>
<apex:column headerValue="{!$ObjectType.Task.Fields.Description.Label}" value="{!acc.Description}" />
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
And the Apex Class
I get the output as follows.public class HoverActivityHistory1{
public static List<Account> accounts;
public static List<Task> acc;
public HoverActivityHistory1(ApexPages.StandardController controller) {
acc = [select Id, WhatId, Subject, Description from Task where WhatId =: ApexPages.currentPage().getParameters().get('id') ];
}
public static List<Task> getTaskvalues(){
return acc;
}
}