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 (permalink)  
Old 09-12-2007, 08: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
Sponsored Links
  #2 (permalink)  
Old 09-18-2007, 08:31 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 1,061
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 On
Pingbacks are On
Refbacks are On


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


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


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0