IT Community - Software Programming, Web Development and Technical Support

Mouse event

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 ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 09-12-2007, 07:26 AM
varghese varghese is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 93
varghese is on a distinguished road
Default Mouse event

hi guys,
I need to execute the function continuously between mouse down and mouse up which event is suitable for this.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 09-18-2007, 07:31 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 905
S.Vinothkumar is on a distinguished road
Wink Re: Mouse event

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!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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


All times are GMT -7. The time now is 11:16 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0