![]() |
| ||
| script/function to lock a mouse and keyboard. Hello there, is it possible for javascript to lock a mouse when you click on a button or a div? I was doing some google search but I failed to find a script for locking a keyboard or mouse. I just would want to add this feature on my site. Thanks! |
| ||
| Re: script/function to lock a mouse and keyboard. No. No sane browser / OS setup will let a webpage 'lock the keyboard or mouse'. Think for 30 seconds why this is the case. If you want to disable all interaction with your site when the user clicks something.. oh-k, something like document.body.disabled = true/false;should suffice, although I can't see why you'd want to do this. The other case, actually locking the keyboard or mouse system-wide; no chance. Even some application programming languages ( non-web ) wont let you do this. I'm sure your individual motives are good, but that's far from the point. Maybe throw a little popup window that says 'please unplug your peripherals'... O_o |
| ||
| Re: script/function to lock a mouse and keyboard. I saw something like that before, when you click on a div it locks the mouse and when you click it back, it unlocks it, but i forgot the site and i forgot to copy the script and that was in javascript. *sigh* |
| ||
| Re: script/function to lock a mouse and keyboard. If the mouse is locked, how do you click again to unlock it? What do you mean exactly by 'locked'? I took that to mean disabled/no longer functional. |
| ||
| Re: script/function to lock a mouse and keyboard. I think I misused the word lock, I don't really know the exact term, but it was something like it disables the use of left click (maybe). When you left click on a certain area, you cannot click on any of the buttons, but if you click again back to that area, it will enable you to click again (left click). Oh well, I'll just try to find that script again, thank you sir. :) |
| ||
| Re: script/function to lock a mouse and keyboard. Maybe something like this: (untested) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| ||
| Re: script/function to lock a mouse and keyboard. I am totally sick of website developers trying to take control of the user's computer. That computer and its controls belongs to the owner of the computer, NOT TO YOU. You could be charged with computer crimes if you succeed in locking part of a user's computer. If you have files so sensitive that you don't want the user doing something with his computer, then DON'T PUBLISH THEM ON THE INTERNET. |
| All times are GMT -4. The time now is 7:32 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC