Sample drag-and-swap application.

The basic functionality is from this tutorial.
Modified it, so that the color of each tile would also move.
Internet Explorer required further modifications, as explained here.
The fix for IE caused problems in Firefox, so had to enclose the IE fix within a browser check for IE.
It now works in current versions of Chrome, Firefox and Internet Explorer.

An interesting article about drag and drop can be found here.
The author points out that drag and drop has been available in Internet Explorer since IE 5.0
and that HTML5 Drag and Drop is based on work done by Microsoft in 1999!


1

Spain

2

rain

3

mainly

4

in

5

the

6

the

7

plains

8

falls

9

in












Valid XHTML 1.0 Transitional Valid CSS!
 


MCP icon