Hi guys,
ok so I have a grid of table cells. I have a script which is carried out on mouseover of a cell. Now the problem is I only want the script to run if the left mouse button is down.
I will obviuosly need an if statement of sorts...but not sure on how to detect if left mouse button is being pressed.
I dont mean onclick either....because if the mouse button is clicked on cell 1, not released, and dragged to cell 2 I still want the script to run for both cells.
Thanks for any help in advance...and if im not making sense then tell e and ill try to explain it better.
Cheers, Jonny
-------------------------------------------------
ok so I have a grid of table cells. I have a script which is carried out on mouseover of a cell. Now the problem is I only want the script to run if the left mouse button is down.
I will obviuosly need an if statement of sorts...but not sure on how to detect if left mouse button is being pressed.
I dont mean onclick either....because if the mouse button is clicked on cell 1, not released, and dragged to cell 2 I still want the script to run for both cells.
Thanks for any help in advance...and if im not making sense then tell e and ill try to explain it better.
Cheers, Jonny
-------------------------------------------------