PDA

View Full Version : Dom & Drag Help



Oranges
18-02-2009, 12:59 PM
<html>
<head>
<script type="text/javascript" src="dom-drag.js"></script>
<style type="text/css">
#root {
position:absolute;
height:300px;
width:308px;
background-color:#F4F4F4;
border:1px solid #333;
}
#handle {
margin:2px;
padding:2px;
width: 98%;
color:white;
background-color: navy;
font-weight: bold;
}
.style1 {
font-family: Arial, Helvetica, sans-serif;
font-size: x-small;
}
body {
background-image: url(../backlarge.png);
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<div id="root" style="left:229px; top:43px;">
<div id="handle">
<div align="center" class="style1">
<p>Habbo Resources</p>
</div>
</div>
<p align="center" class="style1"> Welcome to Habbo Resources, which is currently owned by <strong>Skx</strong> of Habbo UK. We are currently on maintenance and we will be opening sometime in <strong>March</strong>. Our aim is to provide people with free website resources from Habbo Stickers to free coded layouts. </p>
<p align="center" class="style1">Check out our new Dom Drag system, by hovering over this box and drag it to wherever you want. This will play a key feature in the upcoming website.</p>
<p align="center" class="style1">Thanks and remember to come back soon! </p>
<p align="center" class="style1"><strong>Habbo Resources Management</strong></p>
</div>
<script language="javascript">
var theHandle = document.getElementById("handle");
var theRoot = document.getElementById("root");
Drag.init(theHandle, theRoot);
</script>
</body>
</html>
<!-- Source for dom-drag.js -->

This is the code, but it doesnt move, when I view it in IE. thanks.

Edit by Robbie! (Forum Moderator) - Moved to Coding Help, please post in the correct section next time, thanks!

Dada
20-02-2009, 12:03 PM
This is a bit off topic, but I noticed that in your coding it says your website is called habbo resources. Theres already a habbo fansite with that name. I figured you should know. But about the coding, sorry I'm not really sure. But maybe you should post the code for dom-drag.js aswell

Want to hide these adverts? Register an account for free!