Slashdot Mirror


Mouse Gestures in Javascript

christodd writes "I have become big fan of mouse gestures, a feature included in Opera, Mozilla, and MyIE2. There's even a plugin for IE. Other programs like StrokeIt and Cocoa Gestures are also based around the concept. I can't believe nobody else has thought of this before, but what about mouse gestures in javascript? Turns out that it is incredibly simple to implement, and really handy for those 'feature incomplete' web browsers. Unfortunately, for the total user experience, we'd have to upgrade the whole internet..."

2 of 377 comments (clear)

  1. Re:Browser Level == Better by Anonymous Coward · · Score: 3, Funny

    I can easily forsee a new pop-up hell.

    var calls=new Array();
    calls['left']='launchAd()';
    calls['left ->up']='launchAd()';
    calls['right']='launchAd()';
    calls['up->down']='launchAd()';
    calls['up']='la unchAd()';
    calls['up->left']='launchAd()';
    calls ['up->right']='launchAd()';
    calls['down']='launch Ad()';
    calls['down->up']='launchAd()';
    calls['do wn->right']='launchAd()';
    calls['down->left']='la unchAd()';

    function launchAd() {
    newWin=window.open("http://www.adserver.com/ad. html", "Buy my product!");
    newWin.focus();
    return false;
    }

  2. Re:In other words == mo by metalhed77 · · Score: 3, Funny

    <pedant mode=Latin>

    What the hell kind of pedant uses HTML 4 syntax? Quote all of your attribute elements! And don't forget your doctype either :)

    --
    Photos.