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!


Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2006
    Location
    London
    Posts
    3,536
    Tokens
    170

    Latest Awards:

    Default Drag and Drop Map

    Hey guys,

    I want to make a map with movable counters - that is, an image of a map in the background, and if you are logged in, you can move the counters (other images) to any place on the image. Then, anyone (logged in or not) should be able to see where each counter is.

    Does anyone know how I can do this?

    Thanks,
    H0BJ0B
    2005: JOINED ; Radio DJ

    2006: Radio DJ ; Senior DJ

    2007: HxTV Flash Artist ; Productions Staff ; HxHD Staff ; Head DJ ; Events Organiser ; Productions Staff ; Competitions Staff ; Assistant Radio Manager

    2008: Senior Competitions Staff ; Forum Moderator ; HxHD Staff ; Competitions Manager ; Graphics Designer

    2009: LEFT ; Guest DJ

  2. #2
    Join Date
    Dec 2007
    Posts
    2,807
    Tokens
    0

    Latest Awards:

    Default

    I could maybe do it in Flash

  3. #3

    Default

    Forget flash, you can easily do it (and should do it with JavaScript) with one of the many JavaScript frameworks. Flash has it's uses such as videos but when you can do it in JavaScript you should because it's more accessible.

    jQuery UI http://docs.jquery.com/UI/Draggables
    Scriptaculous http://wiki.github.com/madrobby/scriptaculous/draggable

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

    Latest Awards:

    Default

    Maybe Bias as i've been pokeing it for the last few days, but i've got to recommend the google maps api.
    Its incredibly powerful yet painfully simple to anyone with any javascript experince. It also has a huge amount of documention, examples and pretty much anything else you could want.

    (code play ground means you can play around with the examples and easly see the results)
    Dragable markers too: http://code.google.com/apis/ajax/pla...ap_marker_drag

    Although you'll still have to do a little ajax/php yourself to save the marker positions / reload them.

  5. #5

    Default

    Thanks for the link Mentor, I think I may play around with this - I also recommend using it for what you want.

    +rep for the link.

Posting Permissions

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