js搞倒是简单,关键是flash中如何调用js语句我可不会
给你js的代码:
window.open("a.htm","","left="+(screen.availWidth-300)/2+",top="+(screen.availHeight-300)/2)
a.htm中写:
<script>
setTimeout("window.showModaldialog('b.htm')",5000)
</script>
给你js的代码:
window.open("a.htm","","left="+(screen.availWidth-300)/2+",top="+(screen.availHeight-300)/2)
a.htm中写:
<script>
setTimeout("window.showModaldialog('b.htm')",5000)
</script>
on release {getURL(javascript:window.open("a.htm","","left="+(screen.availWidth-300)/2+",top="+(screen.availHeight-300)/2));}
getURL还能这么用?哦,可以试试看
不过,应该是这个样子吧?
on release {getURL('javascript:window.open("a.htm","","left="+(screen.availWidth-300)/2+",top="+(screen.availHeight-300)/2)');}
<div style="z-index:-1"> <!--1.设置FLASH为底层-->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="200" height="115">
<param name="movie" value="http://www.csdn.net/adv/468x60.swf">
<param name="quality" value="high">
<embed src="http://www.csdn.net/adv/468x60.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="200" height="115"></embed>
<param name="wmode" value="transparent"> <!--2.必须把FLASH设置为透明-->
</object> </div>
<div id="huiLayer" style="cursor: hand; position:absolute; left:10px; top:10px; width:200px; height:115px; z-index:1; visibility: visible;"><a href="JavaScript:void window.open('demo.htm','','left='+(screen.availWidth-300)/2+',top='+(screen.availHeight-300)/2+',width=300,height=300')">
<img src="kong.gif" width="200" height="115" border="0"></a></div>
demo.htm<script>
function OpenW()
{
showModelessDialog("myDialog.htm",window,"status:false;dialogWidth:300px;dialogHeight:300px");
}
</script>
<body onload="setTimeout('OpenW()',5000)">测试可以了.附:
怎么给网页中的FLASH动画加超连接,加事件
http://www.csdn.net/Develop/read_article.asp?id=20003
[email protected]