我想在网页上添加一个按纽,来控制一个一个flash的开始,并且能控制页面只能在中午的时候可用。可是总实现不了。
<object>在html页面静态代码是:<OBJECT id=obj1 
codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0 
height=500 width=600 border=0 
classid=clsid:D27CDB6E-AE6D-11CF-96B8-444553540000>
<PARAM NAME="movie" VALUE="xbbzuma.swf">
<PARAM NAME="quality" VALUE="High">
<PARAM NAME="swliveconnect" VALUE="true">

<embed src="xbbzuma.swf" 
pluginspage="http://www.macromedia.com/go/getflashplayer" 
type="application/x-shockwave-flash" name="obj1" width="600" height="500" 
quality="High" swliveconnect="true">
</OBJECT>上边的代码直接放到html中没问题,可是当我动态生成就有问题,下边是我动态创建调用的代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>限时游戏</title>
</head><body>
<input type="button" name="botton1"  value="开始游戏"  onclick="OpenGame()"/>
<div id="s" name="s" style=" width:600;height:500"></div>
<script language="javascript">

function OpenGame(){
var objgm = document.createelement("object");
objgm.id = "obj1";
objgm.classid = "clsid:D27CDB6E-AE6D-11CF-96B8-444553540000";
document.all["s"].appendChild("objgm");
var.objpm1 = document.createelement("param");
objpm.name="movie";
objpm.value="xbbzuma.swf";
var.objpm2 = document.createelement("param");
objpm.name="quality";
objpm.value="High";
var.objpm3 = document.createelement("param");
objpm.name="swliveconnect";
objpm.value="true";
document.getelmentbyid("objgm").appendchild("objgm");}
</script></body>
</html>