<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>SWFObject 2 dynamic publishing example page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("test.swf", "myContent", "300", "120", "9.0.0", "expressInstall.swf");
</script>
</head>
<body>
<div id="myContent">
<h1>Alternative content</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</body>
</html>这种调用方式的,怎么透明?我这是2.2版本的,有办法吗?

解决方案 »

  1.   

    透明就直接把透明设置的属性的键值对作为2个参数传进去
    不过swfobject.js设置透明好像不行 不知道你这个2.2版本的行不行
    如果不行的话 去网上找个修改过的版本
      

  2.   


    var flashvars = {}
    var attributes = {}
    var params ={allowFullScreen:'true',allowScriptAccess:'always',quality:'high',wmode:'Transparent'}
    swfobject.embedSWF("test.swf", "myContent", "300", "120","9.0.0","expressInstall.swf",flashvars,params,attributes)
      

  3.   

    hokee哥哥帮我看看
    http://topic.csdn.net/u/20100221/17/1b84edb5-b77b-4b1a-9604-5258f16a78a7.html
    为什么会报错