Hey, no, actually I need a tooltips not for whole listbox, for its items, for example I click on first item and see its name in tooltip in full form not cuted by listbox width property. That's what I mean.
Thank anyway.
Alex
well, u need to use layers in that case, the coding might be really huge, i can just give u an idea:
<div style="position:absolute;left10px;top:15px;visibility:hidden" id='DivTg'></div>
<select ..... onclick="ShowToolTip(this.value)">
<script>
function ShowToolTip(TheValue)
{
document.getElementById('DivTg').innerText=TheValue
document.getElementById('DivTg').style.visibility="visible"
Hey guys!
Look how have I made it:
function ToolTips(name){
var oObj;
oObj = new ActiveXObject("Internet.HHCtrl");
lb = document.getElementById(name);
ind = lb.selectedIndex;
ss = lb.options[ind];
if (ss.text.length>15)
{
if(ind >= 0){
oP = lb.options[ind];
oObj.TextPopup(oP.text,"Times New Roman,8",5,3,-1,0);
}
}
}
and that is working
yes sure:
<script....
function ToolTips(name){
var oObj;
oObj = new ActiveXObject("Internet.HHCtrl");
lb = document.getElementById(name);
ind = lb.selectedIndex;
ss = lb.options[ind];
if (ss.text.length>15)
{
if(ind >= 0){
oP = lb.options[ind];
oObj.TextPopup(oP.text,"Times New Roman,8",5,3,-1,0);
}
}
}
</script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.