ou shit this is so useless. you can do it without html5 by applying onmousedown on picture and do mypic.style.top=e.clientY; and mypic.style.left=e.clientX; and that is it
@newboston, Why in the world wouldn't you just explain the third parameter of addEventListener? Tutorials, in general, are much more useful for teaching users, rather than showing them how to do something exactly your way.
sometimes
somecallmejohn117 2 weeks ago
ou shit this is so useless. you can do it without html5 by applying onmousedown on picture and do mypic.style.top=e.clientY; and mypic.style.left=e.clientX; and that is it
dsestuller 3 weeks ago
0 is the same as false, right?
Lindhe94 2 months ago in playlist HTML5 Tutorials Playlist
Hey Bucky, try to use [ctrl+d] when you want to copy things. It's much faster :-)
Hulle107 2 months ago
@newboston, Why in the world wouldn't you just explain the third parameter of addEventListener? Tutorials, in general, are much more useful for teaching users, rather than showing them how to do something exactly your way.
havocfx1 2 months ago
@qrsvideos Around 8:55.
nettutsplus 2 months ago
e.preventDefault() has nothing to do with HTML5. It's been available for a long time...
nettutsplus 2 months ago
@thetawaves48 in addEventListener, onclick, onblur, onfocus, ... converted to click, blur, focus, ... you can do this:
document.getElementById("dsfdgfdghgfh").onClick=function () { /*your code*/ }
persiaTUT 2 months ago
Ctrl+D is for copy and paste that line in a new line. its more easy :D
persiaTUT 2 months ago
why is it "dragstart" and not "ondragstart"?
thetawaves48 2 months ago