Javascript / SWFobject | Determine if a swf object exists when creating dynamic embed objects

后端 未结 1 1418
一整个雨季
一整个雨季 2021-01-23 12:53

When I create SWF objects that are temporarly hidden in tabs, thus not fully loaded in some browsers, like FireFox, I can\'t seem to find way to figure out if the SWF is loaded

相关标签:
1条回答
  • 2021-01-23 13:47

    Perhaps a visibility check first?

    var $el = $("#map-one");
    if ( $el.is(':visible') ) {
      $el[0].reloadAll('foobar');
    }
    
    0 讨论(0)
提交回复
热议问题