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>

Subscribe to our YouTube Channel here


* indicates required
Subscribe to plus2net




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

    Post your comments , suggestion , error , requirements etc here .

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2023 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer