Dreamweaver + javascript question

  • Started
  • Last post
  • 1 Response
  • Xentic

    Hello,

    I have a little question. I'm creating a little dhtml game in Dreamweaver. I need to do it in Dreamweaver because it's a school assignment.

    This is what I want to do: I have six layers and the user need to drag them to different targets. No problems so far, but now I want to show another layer when all the other layers are snappet to the right target.

    I think I need a textbox with the value "0" and every time the user drags one of the layers on to the right target a java script checks the value of the textbox. When the value is less then six he will add "1" to the textbox. When the value is "5" the new layer will be showed.

    I hope you understand what i'm trying to do.

    Any help would be apreciated! Thanks in advance!

  • Xentic0

    PLease! Anyone?

    I only need some sort of counter, I know it's possible with javascript, but I don't know how to write the code...

    Does anyone a site with a script like that?

    Thanks!