代码之家  ›  专栏  ›  技术社区  ›  Alec Smart

jquery设置flash wmode参数

  •  2
  • Alec Smart  · 技术社区  · 14 年前

    我想知道是否有任何jquery插件可以在运行时将wmode更改为透明的。(类似于Wibiya的东西)

    我试着用谷歌搜索,但找不到任何与工作相关的插件。我找到的唯一资源是:

    http://www.onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameters/ http://labs.kaliko.com/2009/11/change-wmode-with-jquery.html

    还有其他选择吗?

    1 回复  |  直到 12 年前
        1
  •  2
  •   Steve    14 年前

    您将找不到这样一个功能相对较少的插件;不过,我认为这段代码应该只涵盖它:

    $("object").append(
        $("<param/>").attr({
            'name': 'wmode',
            'value': 'transparent'
        })
    ).find("embed").attr('wmode', 'transparent')
    

    我不确定什么时候最好运行它; ready 可能会工作,但我预计可能为时已晚,因为Flash内容将已经嵌入?值得尝试。