abusing javascript for fun and profit
Post on 18-Oct-2014
2.385 Views
Preview:
DESCRIPTION
TRANSCRIPT
Developed by Brendan EichAt Netscape
Around the time Java was addedWas implented in IE 3.0
JScript: A brief history
Developed by Brendan EichAt Netscape
Around the time Java was addedWas implented in IE 3.0
Became an official ECMA standard
ECMAScript: A brief history
MouseoversStatus bars
Annoying PopupsGet’s a bad name
JavaScript in the 90s
90’s 2000 2002 2004 2006 Today
Microsoft invents XMLRequest
Make server requestswithout refreshing
AJAX
90’s 2000 2002 2004 2006 Today
Three browsers – three technologiesCreate vector graphicsThink outside the box
Canvas/SVG/VML
90’s 2000 2002 2004 2006 Today
Separate JS from the HTMLCreates Business Logic layer
Unobstrusive JavaScript
90’s 2000 2002 2004 2006 Today
User interface widgetsFrameworks a go-go
Closer to desktop appsCool Experiments
We ♥ JavaScript
90’s 2000 2002 2004 2006 Today
Need to create animation loopsetInterval(interval, function);
Check collisionsRender animations
JS isn’t threaded!
Using timers
Pointless without User InputEvent.observe(element, event, handler);
Listen to keypress, window loadCreate some pseudo events
Input Events
An old game techniqueMove background image
…then mask
el.style.backgroundPosition = '0px 0px';
Animation strips
Fixed view pointMove the background
Capture arrow events (ignore)Move character – background scrolls
Sideways scrolling
top related