tag:blogger.com,1999:blog-9161413729669890337.post1134866748720191834..comments2023-03-19T02:35:30.477-07:00Comments on java course | learn java | java tutorial | java j2ee course java installation: how to move a div using javascriptAnonymoushttp://www.blogger.com/profile/09186476697898476634noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-9161413729669890337.post-80260628778678447582013-06-20T04:40:03.379-07:002013-06-20T04:40:03.379-07:00This comment has been removed by a blog administrator.Anonymoushttps://www.blogger.com/profile/16274768661562542837noreply@blogger.comtag:blogger.com,1999:blog-9161413729669890337.post-59714169617031584752013-03-09T01:08:50.025-08:002013-03-09T01:08:50.025-08:00if you wanna just animate the dive you can use the...if you wanna just animate the dive you can use the jquery animate function . $('#ufo').animate({left: '+=5'},800) this function will move the div 5 pixel on any event you will call and will take 800 ms to complete the action use thisAnonymoushttps://www.blogger.com/profile/09186476697898476634noreply@blogger.comtag:blogger.com,1999:blog-9161413729669890337.post-29731488107825287512013-03-09T01:01:27.055-08:002013-03-09T01:01:27.055-08:00are you changing the css property ? are you changing the css property ? Anonymoushttps://www.blogger.com/profile/09186476697898476634noreply@blogger.comtag:blogger.com,1999:blog-9161413729669890337.post-43086990388727122172013-02-28T11:20:04.244-08:002013-02-28T11:20:04.244-08:00I have tested your first code (which I found very ...I have tested your first code (which I found very usefull) and I tried to put some obstacles, for example, in position 400px top, 200px left, in it, what it has supposed to do is that when the moving div enconuters an obstacle it cant pass through, didnt work -.-, what code I have to use to do it?, i am so so loss....Anonymousnoreply@blogger.com