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 |
|
#1
| |||
| |||
| hi guys, I need to execute the function continuously between mouse down and mouse up which event is suitable for this. |
|
#2
| |||
| |||
| 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 |
| Now new mouse pointer | sohel1 | C# Programming | 1 | 09-29-2008 04:32 AM |
| Using javascript how to show tooltip while mouse over ? | sathian | HTML, CSS and Javascript Coding Techniques | 1 | 11-16-2007 03:31 AM |
| Mouse Events | Pvinothkumar | HTML, CSS and Javascript Coding Techniques | 10 | 10-17-2007 11:41 PM |
| Windows Forms Mouse Handling | Sundaram | C# Programming | 3 | 09-25-2007 07:51 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 04:27 AM |
Our Partners |