标签归档:z-index

flash在网页中的关于z-index设置问题的问题

在设计wjgww.com首页时,浮动层设置z-index为何值时都被flash挡住,很是郁闷,怎么样才能让Flash动画显示在下面,而让浮动层显示在上边呢?
在网上搜了一下,找到了解决方案,把Flash插入在flash属性里加:就可以了。

下面是我在wjgww.com中加入的脚本,加入Flash时用:

<html><head><title>网页添加Flash</title>
<script type="text/javascript" src="http://www.wjgww.com/js/loadswf.js"></script>
</head>
<body>
<!--
HTML Code...
 
!!!Demo Start
-->
<div>
	<div><script type="text/javascript">myw3_swf("home.swf");</script><div>添加Flash,根据父窗口大小自动调整大小</div></div>
	<div><script type="text/javascript">myw3_swf("home.swf",100,100);</script><div>添加Flash,大小为100x100</div></div>
	<div><script type="text/javascript">myw3_swf("swfoto.swf?image=/images/uploadimg/9f1011b385500ab4d9335aac.jpg");</script><div>传递参数测试</div></div>
	<div><script type="text/javascript">myw3_swf("player.swf",,,"http://6.cn/");</script><div>加入6.cn中的player.swf</div></div>
</div>
<!--
HTML Code...
-->
</body>
</html>
function myw3_swf(s,w,h,i){
	if(!w)
		w="100%";
	if(!h)
		h="100%";
	if(!i)
		i="http://wjgww.com/template/wjgww_com/images/";
 
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"  width="'+w+'" height="'+h+'" />');
	document.writeln('<param name="movie" value="'+i+s+'" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="wmode" value="Opaque" />');
	document.writeln('<embed src="'+i+s+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" wmode="Opaque">');
	document.writeln('</embed>');
}