Javascript for asp.net gridview tootip
how to write javascript for asp.net gridview tooltip
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
janaki janakiPosted Dec 27, 2011, 5:26 AM
<
script type="text/javascript" language="javascript">e = (e ==
target = (e.target) ? e.target : e.srcElement;
document.getElementById(
document.getElementById(
document.getElementById(
function showTip(e, text) {null) ? window.event : e;'text').innerHTML = text;'tooltip').style.left = target.offsetLeft + 185 + 'px';'tooltip').style.top = target.offsetTop + 20 + 'px';//document.getElementById('tooltip').style.right=target.offsetRight + 20 + 'px';document.getElementById(
document.getElementById(
document.getElementById(
target.onmouseout =
'tooltip').style.display = 'block';'tooltip').style.backgroundColor = 'LightGray';'tooltip').style.color = 'Black';function () { document.getElementById('tooltip').style.display = 'none' };// OnRowDataBound = "gdtest_rowdatabound"}
script>
<style type="text/css">
.tooltipdesign{
}
position: absolute; display: none; width: auto; border:1px solid black; text-align:left; Z-INDEX: 100; padding:4px; style><
div id="tooltip" class="tooltipdesign" > <div id="text" style="position: relative;"> div>
div>Anuja PawarPosted Dec 27, 2011, 3:04 AM
and code behind add this