Hi,
Assuming your
DIV
and
LinkButton
are
<asp:linkbutton runat="server" id="lnkShow" text="Show Div" onclientclick="return ShowDiv();" ></asp:linkbutton>
<div id="DivToShow" style="display: none; position: fixed; padding: 3px; -webkit-border-radius: 10px;-moz-border-radius: 10px; border-radius: 10px; border: 1px solid; z-index: 50000; width: auto; background: #d3e499;">
Content of the div
</div>
and then add below javascript/jQuery code to your page to get the position where the DIV to show
var mouseX = 0;
var mouseY = 0;
$(document).ready(function () {
$(document).mousemove(function (event) {
mouseX = Math.round(event.clientX);
mouseY = Math.round(event.clientY + 15);
});
});
function ShowDiv() {
$('#DivToShow').css({ 'top': mouseY + 'px', 'left': mouseX + 'px' }).fadeIn('slow');
}
Hope this will help you.