如何通过html或php将params传递给html嵌入swf?

Hello guys how are you doing? Fine i hope.

Well i'm trying to make a non javascript version of a site and there is this swf client that runs by a javascript library which sets sizes and passes params.

Here is some code:

swfobject.embedSWF(KingGame._game_url, "flashContent", KingGame._flash_width, KingGame._flash_height, "10.0.0", false, {"param": KingGame._flash_params}, paramtrs);

This is the line where swfobject framework calls the swf and is passes this param to it which is an enormous xml file converted to a string i supose.

So now im trying to use something like:

<object width="1000" height="1000">
    <param name="params" value="<?=urlencode($xml_config)?>">
    <embed src="<?=$url?>" width="1000" height="1000">
    </embed>
</object>

But it's not working i don't know how to pass this params with php or html, i'm searching but finding nothing, does anyone knows if that is possible at least?

Thanks

douwen5066
douwen5066 无论如何,你是否还需要一个电影源的参数,并需要包含嵌入标签的参数?看起来每个标签只有一个。请记住,embed标记是不支持对象的浏览器的后备。
大约 4 年之前 回复
duanhong1985
duanhong1985 有没有人真的有FlashPlayer而没有启用JavaScript?
大约 4 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐