HTML5 Tutorial - 45 - Working on the Drag and Drop Program

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,914
Loading...
Alert icon
Sign in or sign up now!
Alert icon
  • likes, 2 dislikes

Link to this comment:

Share to:
see all

All Comments (24)

Sign In or Sign Up now to post a comment!
  • sometimes

  • 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

  • 0 is the same as false, right?

  • Hey Bucky, try to use [ctrl+d] when you want to copy things. It's much faster :-)

  • @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.

  • @qrsvideos Around 8:55.

  • e.preventDefault() has nothing to do with HTML5. It's been available for a long time...

  • @thetawaves48 in addEventListener, onclick, onblur, onfocus, ... converted to click, blur, focus, ... you can do this:

    document.getElementById("dsfdg­fdghgfh").onClick=function () { /*your code*/ }

  • Ctrl+D is for copy and paste that line in a new line. its more easy :D

  • why is it "dragstart" and not "ondragstart"?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more