April 23rd, 2013, 08:20 PM
Applying a style to a onmouseover event
Just one question. How do you apply a style to an onmouseover event?
April 23rd, 2013, 09:58 PM
You need to give more detail for anyone to be able to answer your question.
April 23rd, 2013, 10:08 PM
Style effect on mouseover event
Just a question. How do I get an effect from a style to a mouseover event?
Here is my code (?)
<img id="mediamenu" onMouseOver=" document.all['mediamenu'].this.style.position='absolute'; document.all['mediamenu'].this.style.top='0%'; document.all['mediamenu'].this.style.left='0%'; this.src='mediamenu.jpg'" onMouseOut="this.src='mediaoption.jpg'" src='mediaoption.jpg'" width="207" height="55"/></p>
April 23rd, 2013, 11:08 PM
"document.all" is obsolete. It was an IE4 feature.
The DOM2 standard supported by modern browsers is this:
However, your code doesn't make much sense. You don't need either:
P.S. Why did you close the thread?
onMouseOver=" this.style.position='absolute'; this.style.top='0%'; this.style.left='0%'; this.src='mediamenu.jpg'"
EDIT: I've now merged the two threads.
Last edited by Kravvitz; April 24th, 2013 at 01:06 AM.
April 24th, 2013, 12:54 AM
style of mouseover event
I am having problems with applying a style to position a submenu.
The submenu is mediamenu.jpg.
Here is what I have done so far.
<a href=""><img src="mediaoption.jpg" onFocus="window.status='focussed'" onClick="window.status="false"" onMouseOver="this.style.top="434px";this.style.left="55px";this.src='mediamenu.jpg'" onMouseOut="this.src='mediaoption.jpg'" /></a>