Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Javascript, How to make a Dress Up Game (Drag and Drop)

Share this post!
 Vote this!

A lot of doll maker sites uses this script to make their doll pieces draggable. This version would work on BOTH ie and netscape (original script by DynamicDrive).
Just add the field (i.e. class="dragme") to make an image draggable is all that is required. The z order of the images is determined by which image is created last (the last image will be the top most image).Below we set the three images placed inside a table (could just as well be a div) and assigned the classname "dragme" to each of them.more...

0 comments:

Post a Comment