Drag and drop game - why isn't it working now I've moved it to another domain?

Posted by vward on Stack Overflow See other posts from Stack Overflow or by vward
Published on 2012-10-23T10:57:44Z Indexed on 2012/10/23 11:00 UTC
Read the original article Hit count: 193

Filed under:
|
|

Earlier this year I did some work on a drag and drop game. It was the first thing I'd coded other than basic html. I got it working but then had to put it to one side for a while.

I've now come back to work on it. The game I had created was put on the ftp of a domain I no longer have. I took the html and image files and put them on another domain expecting them to work. However now nothing drags!

I don't know what could be different. I can barely remember how I coded this in the first place. Is there an additional file that should be on the ftp or something like that? Can anyone shed any light?

Thanks

Vic

Game: http://www.vic-taylor.com/dolls/doll6.html

Code:

<!doctype html>
<html lang="en">
<head>


<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="http://code.jquery.com/ui/1.8.17/jquery-ui.min.js"></script>


    <script>
    $(function() {
        $( "#draggable" ).draggable()
    });
    </script>

<script>
    $(function() {
        $( "#draggable2" ).draggable();
    });
    </script>

<script>
    $(function() {
        $( "#draggable3" ).draggable();
    });
    </script>

<script>
    $(function() {
        $( "#draggable4" ).draggable();
    });
    </script>

<script>
    $(function() {
        $( "#draggable5" ).draggable();
    });
    </script>


</head>
</body>

<div id="bodies/palepd.gif">
    <img src="bodies/palepd.gif" class="ui-widget-content" id="draggable">
    <img src="bodies/trousers.gif" class="ui-widget-content" id="draggable2">
<img src="bodies/top.gif" class="ui-widget-content" id="draggable3">
<img src="bodies/dress.gif" class="ui-widget-content" id="draggable4">
<img src="bodies/coat.gif" class="ui-widget-content" id="draggable5">
</div>


</body>

© Stack Overflow or respective owner

Related posts about draggable

Related posts about drag