Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Sep 2004
    Location
    Far far away....
    Posts
    395
    Tokens
    0

    Thumbs up Drag and drop game help!

    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?
    My habbo name is PinksForum:eusa_danc



  2. #2
    Join Date
    Jun 2004
    Posts
    753
    Tokens
    0

    Default

    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
    My sites

    Mangacars.co.uk

    Ppxgames.com

    Uploadforfree.NET (EXPIRED)

    PixelLoft.NET

    Css-Gyro.com

    Neonfusion.NET

    [Zainx / Lofty]

  3. #3
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    <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

  4. #4
    Join Date
    Sep 2004
    Location
    Far far away....
    Posts
    395
    Tokens
    0

    Default

    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
    My habbo name is PinksForum:eusa_danc



  5. #5
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    well the top parts set as a page.

    but the javascript and css go in the head.

    the images go in the body.

  6. #6
    Join Date
    Oct 2004
    Location
    Scotland
    Posts
    2,280
    Tokens
    1,075

    Latest Awards:

    Default

    to be a little less complicated, just copy the whole thing into a black HTML document, it should then work

    http://www.stupidian.com
    (contains mild swearing)

  7. #7
    Join Date
    Sep 2004
    Location
    Far far away....
    Posts
    395
    Tokens
    0

    Default

    Thnx i've got it up and running now
    My habbo name is PinksForum:eusa_danc



  8. #8
    Join Date
    Dec 2004
    Location
    UK
    Posts
    534
    Tokens
    141

    Default

    yea, that helped me 2, thx 4 dat, btw check it out if u want:

    http://www.rare-ring.habbohosting.ne...oom_design.htm

  9. #9
    Join Date
    Sep 2004
    Location
    Far far away....
    Posts
    395
    Tokens
    0

    Default

    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.
    My habbo name is PinksForum:eusa_danc



  10. #10
    Join Date
    Dec 2004
    Location
    UK
    Posts
    534
    Tokens
    141

    Default

    ill look forward 2 wen it opens

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •