embedded code not working using .animate javascript

Asked by bert smit

Hello,

Wenn I use embedded code with some javacript is doesn't work. The code works wenn I past it in a file and start it with IE.

After some searching I found that wenn the problem is in following lines in the javascript :

$("#result").animate({top: "+="+h+"px",}, 1000,function(){loadItem();}

$("#result").animate({top: "+="+h+"px",}, 1000,function(){setTimeout(function(){hideItem();},duration);} );

This lines are in a .js file on our server.

Hope someone can help.

Thanks,

Bert

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
bert smit
Solved:
Last query:
Last reply:
Revision history for this message
bert smit (bert-v) said :
#1

found the error:

animate({top: "+="+h+"px",} must be
animate({top: "+="+h+"px"}

Now it works.