Quarfelburg
asked on
onMouseOut change div to visibility:hidden
I have a list - onmouseout of the <ul> I want it to hide a div on the page. Any suggestions?
Thanks,
Hayden
Thanks,
Hayden
ASKER
Perhaps I wasn't clear - I have a div absolutely positioned on a page and want an onmouseout to change the css on my style sheet to visiblity:hidden
Sorry , forgot to mention above code was two snapshot from one of my apps , you would need to use
document.getElementById to get the pointer to your div tag , i.e :-
So the pseudo code would look like :-
In your list : onMouseOut="hideIt(div id);"
In hide function :- function hideIt(Pass the div Object here) {
document.getElementById(di v id).style.visibility="hidd en"; //set to hidden
}
document.getElementById to get the pointer to your div tag , i.e :-
So the pseudo code would look like :-
In your list : onMouseOut="hideIt(div id);"
In hide function :- function hideIt(Pass the div Object here) {
document.getElementById(di
}
ASKER
what do you mean by "Pass the div Object here"?
Pardon my ignorance.
Pardon my ignorance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry meant to put assist on xp_commander
Anyway to change that?
Thanks guys,
Hayden
Anyway to change that?
Thanks guys,
Hayden
function showIt() {
document.frm.text.style.vi
}
function hideIt() {
document.frm.text.style.vi
}
</script>
call this on your onmouseout event such as :-
<UL>
<LI><A HREF="order.html"
onMouseOver="describe('Ord
onMouseOut="hideIt()">
Order Form</A>
<LI><A HREF="email.html"
onMouseOver="describe('Sen
onMouseOut="hideIt();">
Email</A>
</UL>
Alternatively, you can use
document.frm.text.style.di
AND
document.frm.text.style.di
As this above code will not only makes it invisible but removes it from the page, so it does not takes up any space