Categories | Question details Back To List | ||||||||
DHTMLXCOMBO - ONMOUSEMOVE & ONMOUSEOUT OBJECT Hi, need help. I got the onmouseover list, but no i need an onmouseover the dropdown object: eg: z.readonly(true); z.onmousemove("document.getElementById(td_<xsl:value-of select='@name' />").style.color = 'red'); z.onmouseout(document.getElementById("td_<xsl:value-of select='@name' />").style.color = 'black'); Does anyone have an idea to this onmousemove & onmouseout? The script within defenitly works. Please Assist (ismailc@parmalat.co.za) Answer posted by Support on Aug 26, 2008 06:35 If I understood use-case correctly, can be done as dhtmlxEvent(z.DOMelem_input,"mouseover",function(){ dhtmlxEvent(z.DOMelem_input,"mouseout",function(){ Answer posted by ismail on Aug 26, 2008 06:54 Hi, Thank you = i'm really excited that this is possible but i'm struggling. where do i add this? to my xslt file or dhtmlcombo.js can't get it going: < script TYPE='text/javascript'>var z=dhtmlXComboFromSelect(" <xsl:value-of select='$Name' />");z.readonly(true); dhtmlxEvent(z.DOMelem_input,"mouseover",function(){ document.getElementById(td_ <xsl:value-of select='@name' />").style.color = 'red';}); dhtmlxEvent(z.DOMelem_input,"mouseout",function(){ document.getElementById(td_ <xsl:value-of select='@name' />").style.color = 'black';}); </ script>Answer posted by Ismail on Aug 26, 2008 07:14 I have tried at both areas but no success.... Answer posted by Support on Aug 26, 2008 07:24 Please check attached sample. Attachments (1)
Answer posted by Ismail on Aug 26, 2008 07:46 Wow - Thanks you made my day... I don't know what to say but to thank you.... Thank you for your kindness, patience & help. I saw my problem: I copied it - i was missing a " dhtmlxEvent(z.DOMelem_input,"mouseout",function(){ document.getElementById("td_<xsl:value-of select='@name' />").style.color = black; }); Regards |