<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JQueryTest.aspx.cs" Inherits="WebApplication1.WebForm3" %>
<!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 runat="server">
<title>无标题页</title>
<script src="js/common.js" language="javascript" type="text/javascript" ></script>
<script language="javascript" type="text/javascript">
$().ready(function(){
document.getElementById("FlashMovie").SetVariable("data","");
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="cc">
<object name="FlashMovie" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
type="application/x-shockwave-flash" data="倒.swf" width="200" height="200" id="FlashMovie">
<param name="movie" value="倒.swf" />
</object>
<input type="button" id="aa" onclick="number1()" value="click" />
</div>
</div>
</form>
</body>
</html>
如上代码,我在js中调用的关于js到flash通信的方法(GetVariable(),Rewind())都无效,我用的是IE6浏览器,这是为什么呀!
你用ie7,ie8,firefox测试下。