+ 1
I have created a object and in the html I am trying to get it to move(up, down..)using buttons.Can you check to see whats wrong?
<button onclick='MoveObject'("left 20px")>Left</button>
4 Respostas
+ 2
MoveObject being undefined: You need to create the function named this. I imagine you are changing the CSS/style of the element. It's easier to do this using jQuery.
+ 1
What's the code for MoveObject look like?
0
I properly don't have a code. That must be whats wrong because the error says MoveObject is not defined. Thanks I'll read up on it.
- 1
You must be make a code in your css file