This is a discussion on Mouse event within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; hi guys, I need to execute the function continuously between mouse down and mouse up which event is suitable for ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| yep...You can use that function in that event also.. Code: <HTML>
<HEAD>
<TITLE>Hello All</TITLE>
</HEAD>
<SCRIPT>
function randomcolor() {
event.srcElement.style.color=Math.floor(Math.random()*16777216);
}
</SCRIPT>
<BODY>
<P onmousemove="randomcolor();" STYLE="position:absolute;top:10;left:10;color:black">Hello from A</P>
<P onmousemove="randomcolor();" STYLE="position:absolute;top:50;left:20;color:black">Hello from B</P>
</BODY>
</HTML>
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using javascript how to show tooltip while mouse over ? | sathian | HTML, CSS and Javascript Coding Techniques | 1 | 11-16-2007 04:31 AM |
| Mouse Events | Pvinothkumar | HTML, CSS and Javascript Coding Techniques | 10 | 10-18-2007 12:41 AM |
| Windows Forms Mouse Handling | Sundaram | C# Programming | 3 | 09-25-2007 08:51 AM |
| How can I detect mouse events with Ctrl, Alt, and Shift keys? | kingmaker | HTML, CSS and Javascript Coding Techniques | 1 | 08-10-2007 03:33 AM |
| event.clientX and event.clientY is working in IE but not work in firefox? | senraj | HTML, CSS and Javascript Coding Techniques | 2 | 08-08-2007 05:27 AM |