Не могу сделать .
Делаю так.
htm
Код:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Untitled Document</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<script language="JavaScript" type="text/JavaScript">
function closebanner()
{
document.getElementById('swf').innerHTM L = '';
}
</script>
</head>
<body>
<div id="swf" style="position:absolute; width:100%; height:100%; z-index:1">
<div align="center">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="550" height="400" id="flag" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="flag.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#ffffff" />
<embed src="flag.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="550" height="400" name="flag" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
</div>
контент
</body>
</html>
flash
на кнопку
Код:
on (press) {
getURL('javascript:closebanner();')
}
не получается, почему?[/code]