Onmousemove

Onmousemove events gets triggered when we move the mouse pointer over an element. Here is the syntax
<div  onmousemove="trigger some function or change style">
We will try this in our div layer example. To keep the difference we have also added one more onmouseout event to restore the background color to a different value. The code part is here
<div id="dis1" style=" position: relative; right: 0px; top: 10px; background-color: #f1f1f1; 
width: 250px; padding: 10px; color: black; border: #0000cc 2px dashed; "
onmouseout="this.style.background='#f0f000';" onmousemove="this.style.background='#f06080';">
Bring Mouse inside this <br>After moving inside then take out</div>
Visitors Rating
Your Rating





prasanth

01-12-2012

hai I am trying to get the bottom shadow for the textbox... please suggest

Post Comment This is for short comments only. Use the forum for more discussions.




HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer