Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Sasuke

Sasuke Avatar

****
Senior Member

418


August 2005
Yea, I saw this around last year...is really neat :P

Zero Tolerance

Zero Tolerance Avatar

*
New Member

21


October 2005
Well that was my old code Kenshin, this one i made a couple of days before i posted this thread, the idea was to do what the old one did, with a couple of changes:

- Cross Browser
- Easy adaption to any page element

As for the 'e' within the catch(), it's the error object, the 'e' itself could be called any variable you like, you can get the error message like so: e.message (or e.description).
Theres other attributes for the error object, none of which I would personally find useful though, the description/message however is handy for debugging :)

- Zero Tolerance

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Ah. :P I'll keep that in mind, very helpful little trick.

Sasuke

Sasuke Avatar

****
Senior Member

418


August 2005
ah,didnt know...doesn't seem to much different.

Simie

Simie Avatar

******
ProScripter

1,051


May 2006
Found a bug with this...

simietesting.proboards98.com/index.cgi?board=rpginfinity

If you scroll down, then drag, then it kinda messes up =P


(Sorry for the huge bump, I can't fix it myself =P)

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Had to dig to find my own Drag and Drop class.

Find this

document.mouse_x = e.clientX
document.mouse_y = e.clientY



Change it to this

document.mouse_x = e.clientX + document.body.scrollLeft - document.body.clientLeft
document.mouse_y = e.clientY + document.body.scrollTop - document.body.clientTop


That should do it. :P

Simie

Simie Avatar

******
ProScripter

1,051


May 2006
Its not working at all now 0_0

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
Weird. =/ Here, bother me on MSN and I'll send you my drag and drop class.

newBookmarkLockedFalling