|
有些网页采用swfupload控件进行文件上传的操作,并在网页中使用javascript进行设置,请问有没有办法获取该控件的句柄,对它模拟一个点击操作?
如:
script language="JavaScript" type="text/javascript">
var fo = new SWFObject("http://pics.com/players/mainUpload.swf?rand=20101122", "uploadswf", "420", "140", "9.0.16.0", "#000");
fo.addVariable("uploadPage", "http://upload.com/uploadfile");
fo.addVariable("countryId","1");
fo.addParam("align","middle");
fo.addParam("quality","high");
fo.addParam("allowFullScreen","true");
fo.addParam("allowScriptAccess","always");
fo.addParam("wmode","transparent");
fo.useExpressInstall('/players/expressinstall.swf');
fo.write("uploadbox");
</script>
能否获取fo对象的指向句柄? |
|