开发者

jQuery resize flash twitch in safari

开发者 https://www.devze.com 2023-03-05 04:44 出处:网络
Hey everyone. Having a problem while resizing a flash object using jquery in Safari only on the following site:

Hey everyone. Having a problem while resizing a flash object using jquery in Safari only on the following site:

http://www.whittakers.co.nz/

When you navigate around I call javascript events when the flash object needs开发者_StackOverflow中文版 to change height and when that happens there is a quick flash where everything goes crazy and then it goes back to normal. Really weird, and I cannot figure out how to fix it.

You can see my Javascript source here:

http://www.whittakers.co.nz/site-media/main/javascripts/flash-resize.js

Let me know if you need any more info. I have drawn a blank fixing this one. Thanks in advance!


I'm not 100% sure if this is the cause of your problem, but I noticed that setFlashHeight gets called twice with different values. If you put a console log or an alert you'll see the different values. This happens particularly quickly when I click on products. Would it be possible to just call it once?

0

精彩评论

暂无评论...
验证码 换一张
取 消