Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 27th, 2012  |  syntax: None  |  size: 0.21 KB  |  views: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. var testEl = document.getElementById("el");
  2. testEl.onmousedown = function () {  
  3.   // initialize mouse interface
  4. }
  5. testEl.ontouchstart = function () {
  6.   testEl.onmousedown = null; // initialize touch interface
  7. }