I want to create a simple drag and drop 'dressup' habbo for my website. Can someone either tell me how...or make me one?
I just want a 'naked' habbo with hair, clothes and shoes to put on it. Can anyone help?
Printable View
I want to create a simple drag and drop 'dressup' habbo for my website. Can someone either tell me how...or make me one?
I just want a 'naked' habbo with hair, clothes and shoes to put on it. Can anyone help?
anti-pod has 1 i made for his old site so if u want it ask him it only the boy but it took about 4 hours so in return i want some where on it saying created by lofty mangacars.co.uk
<html>
<head>
<style>
<!--
.drag{position:relative;cursor:hand}
-->
</style>
<script language="JavaScript1.2">
<!--
/*Credit JavaScript Kit www.javascriptkit.com*/
var dragapproved=false
var z,x,y
function move(){
if (event.button==1&&dragapproved){
z.style.pixelLeft=temp1+event.clientX-x
z.style.pixelTop=temp2+event.clientY-y
return false
}
}
function drags(){
if (!document.all)
return
if (event.srcElement.className=="drag"){
dragapproved=true
z=event.srcElement
temp1=z.style.pixelLeft
temp2=z.style.pixelTop
x=event.clientX
y=event.clientY
document.onmousemove=move
}
}
document.onmousedown=drags
document.onmouseup=new Function("dragapproved=false")
//-->
</script>
</head>
<body>
<img src="test.gif" class="drag">
<img src="test2.gif" class="drag">
<img src="test3.gif" class="drag">
</body>
</html>
Basicly you can do it to images text etc. All you do is set its calls to drag.
ala this code.
class="drag"
change the image test1.gif or what ever else to what ever images the cloths are. You can ad as many as you want.
to set the main non movebale image just put it in as a normal one without the class="drag" attribute.
Hope this helps
thnx so much mentor, just to be clear...where do i put this code on my site? head or body or somewhere else..I'm sorta new at all this lol
well the top parts set as a page.
but the javascript and css go in the head.
the images go in the body.
to be a little less complicated, just copy the whole thing into a black HTML document, it should then work :)
Thnx i've got it up and running now :)
yea, that helped me 2, thx 4 dat, btw check it out if u want:
http://www.rare-ring.habbohosting.ne...oom_design.htm
nice mike :) mine is at geocities.com/pink_habbo/games
(i will get a .tk once the WHOLE site is ready. plz dont rate the site as its rubbish AT THE MOMENT.
ill look forward 2 wen it opens