View Full Version : onmouseover="(de???)select();"
dhtmlhelp
08-10-2002, 05:17 PM
Hi,
what is the opposite of:
onmouseover="select();" ?
DHTMLHELP
mordred
08-10-2002, 07:21 PM
Only you know what is meant with "opposite".
2) Be descriptive and articulate when asking your question! Some of you are posting as if we're all psychics, and are supposed to grasp your question with the little or confusing information you've provided in your question. We cannot read your mind, and putting up a post like "Can someone help me with arrays?" or "How can I get the slide-in slideshow to work on my site?" is not nearly enough information to go by. What exactly do you want to know about arrays? Which slide-in slideshow are you referring to (the one written by Bill Gates?)? Set us up with some crucial background information, what you want to do, and what the problem is. Be concise and precise.
dhtmlhelp
08-10-2002, 07:36 PM
ok, ok, I am using it for an <input type=text> box. When the mouse goes over the text box the box is automatically selected with onMouseOver="select();".
What I need is the function that deselects the box OnMouseOut:
??? OnMouseOut="(de???)select();" ??
thanks,
DHTMLHELP
mordred
08-11-2002, 02:44 PM
I fear there is no javascript method specifically designed to remove to deselect a previously selected form field, and which works reliably crossbrowser. You might consider employing this function, that should provide the desired functionality for IE and Mozilla (this browsers I tested it with).
function deselect(inputField) {
if (window.sidebar) {
inputField.blur();
}
if (document.all && !window.opera) {
inputField.value = inputField.value;
}
}
and call it like
onmouseout="deselect(this)"
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.