This project involves controlling a toy car over LAN.On my html page, there are 5 "buttons";up, down, left, right, stop.My code works like this: Say the user clicks on "up", a value gets sent to a php page for processing and the processed string gets printed on another php page for an arduino to read.For the car to stop, the user has to click on stop.\[code\]<html><head></head><form name="motorform" action="motorboardprocess.php" method="post"><tr><p align='center'><font face="BN machine" size="6" color="royalblue">Motor Shield</font></tr><tr> <input id="forward" type="image" src="http://stackoverflow.com/questions/14084687/up.png" name="forward"></tr> <tr> <input id="left" type="image" src="http://stackoverflow.com/questions/14084687/left.png" name="left"> <input id="stop"type="image" src="http://stackoverflow.com/questions/14084687/stop.png" name="stop"> <input id="right" type="image" src="http://stackoverflow.com/questions/14084687/right.png" name="right"></tr><tr> <input id="backward" type="image" src="http://stackoverflow.com/questions/14084687/down.png" name="backward"></tr> </form></body></html>\[/code\]and the said php...\[code\]<?phpif (isset($_POST['forward_x'], $_POST['forward_y'])){ $myFile = "mtboardcom.php"; $fh = fopen($myFile, 'w') or die("can't open file"); $stringData = "http://stackoverflow.com/questions/14084687/<?php\n"; fwrite($fh, $stringData); $stringData = "http://stackoverflow.com/questions/14084687/echo".'"<forward>"'."\n"; fwrite($fh, $stringData); $stringData = "http://stackoverflow.com/questions/14084687/?>\n"; fwrite($fh, $stringData); fclose($fh); }else if (isset($_POST['left_x'], $_POST['left_y'])){ $myFile = "mtboardcom.php"; $fh = fopen($myFile, 'w') or die("can't open file"); $stringData = "http://stackoverflow.com/questions/14084687/<?php\n"; fwrite($fh, $stringData); $stringData = "http://stackoverflow.com/questions/14084687/echo".'"<left>"'."\n"; fwrite($fh, $stringData); $stringData = "http://stackoverflow.com/questions/14084687/?>\n"; fwrite($fh, $stringData); fclose($fh); }//and so on.....\[/code\]the arduino reads:\[code\]<?php echo "<forward>"?>\[/code\]So the question is, how do I make use of the \[code\]mousedown\[/code\] and \[code\]mouseup\[/code\] events from jqueryto remove the stop 'button'.Or another scenario: the user holds down the button to move the car and releases the button to stop the car.On \[code\]mousedown\[/code\], a string \[code\]'forward'\[/code\] is read by the arduino.\[code\]mouseup\[/code\] on the same button, string \[code\]'stop'\[/code\] is read by the arduino.