Moving a div layer with javascript
Pseudo formula:
New style.left = MovingMouseX-(PushedMouseX-PreviousStyleLeft)
New style.top = MovingMouseY-(PushedMouseY-PreviousStyleTop)
With this formula you will move the layer relative to where you clicked on it.
My example, just view the source to see my code.
1 Comment › Leave yours
Leave a Reply
Welcome to Thronic.com
Search this Site
Miscellaneous Links
Recent Articles
- Google-like search suggestion tool
- Linux Bash Color
- Resize a div layer with javascript
- Moving a div layer with javascript
- Web Galaxy » A sci-fi browser game
- Windows 7 on Asus Eee 900 PC
- IE and PHP sessions
- Wordpress 2.8.6 Spell Check Languages
- Reset MySQL Root Password
- Linux hosts file
- IdleGuard
- Column count in SQL
- String encryption in PHP
- Alphanumeric Captcha values in PHP
- Your own numeric Captcha in PHP

great tutorials…i liked ur easy but most useful tutorials like this one of div moving, php 2 pdf / php 2 excell tutorials. too easy to understand and follow.
thanks and keep it up