0

hello all,

i am using script functions for tooltip.

function showTip(js_element)
{ 
var str_selectedElement="";
var str_tipElement=document.getElementById(js_element);
var str_comboElement=document.all('cmd_combo');
    for(var i=0;i<str_comboElement.length;i++)
     {
            if(str_comboElement[i].selected)
	{		str_selectedElement=str_comboElement[i].text;
	break;
	}
     }
str_tipElement.innerHTML=str_selectedElement;
}

This function is giving me tooltip on clicking/selecting items from dropdown list.i want tooltip according to my mouse movement over the list. Not on seleceted item.

<DIV id='tooltip'></DIV>
<Select name="cmd_combo" onmouseover="showTip('tooltip')">

let me know which functions i have to use to get that.

Thanks,
pooja

Edited by peter_budo: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by KPooja
0

Thank you for your reply, I will go through this.

I have gone through the link and have searched more on this topic.
Finally i got to know that options in select tag will not recognise any events.

i cannot use title tooltip because it will last after some time and i cannot modify tittle tooltip to stay longer time.

so finally i am doing this for the solution:
Increase the size of the dropdown to have fullname in dropdownlist.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.