JQuery: animate() doesn't work as expected in IE

后端 未结 8 931
广开言路
广开言路 2021-01-06 02:17

I\'m getting crazy with this IE 7...

==> hhttp://neu.emergent-innovation.com/

Why does following function not work in IE 7, but perfectly with Firefox? Is th

相关标签:
8条回答
  • 2021-01-06 03:19

    This might be off topic but I am playing around with JQuery and its great but being new to Javascript I didnt realise that IE 7 and IE 8 don't recognise the const keyword . Thats what was stopping my JQuery from running not a problem with animation ..hope that might help some desparate soul. man I can't wait to get back to good ol AS3 and Flex..

    see http://www.gtalbot.org/BrowserBugsSection/MSIE7Bugs/JSConstKeyword.html

    for more

    0 讨论(0)
  • 2021-01-06 03:20

    Change your duration for IE. Make it 1/10th what you would in FF, and it should be close to the same behavior in both browsers:

    FF

    $("#map").animate({"top": (pageY - 101) + "px"},{"easing" : "linear", "duration" : 200});
    

    IE

    $("#map").animate({"top": (pageY - 101) + "px"},{"easing" : "linear", "duration" : 20});
    

    Should fix it.

    0 讨论(0)
提交回复
热议问题