css中怎么写入flash丫

html-css017

css中怎么写入flash丫,第1张

css应该是无法直接写入flash的.设计页面的代码是必需要的.没有那些代码,你的FLASH也无法正显示.CSS可以写设置背景的代码.应该无法将flash设为背景.所以你也只能用设计面板的插入

你好:

看看是不是你要的效果,希望对你有帮助

提示:把代码保存为a.htm即可预览效果

<script>

//<div id=dangdang style='position: absolutewidth:80top:300left:5visibility: visiblez-index: 1'></div>

var html="<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='400' height='200'>"

+"<param name='movie' value='http://img5.3lian.com/flash/f11/1/18.swf' />"

+"<param name='quality' value='high' />"

+"</object>"

function setDivBG(s)

{

var div1 = document.getElementById("div1")

div1.className=s

if(s=="style1")div1.innerHTML=html

else div1.innerHTML=""

}

</script>

<head>

<style type="text/css">

.style2

{

width: 400px

height: 200px

background-image:url('http://img.baidu.com/img/iknow/images/r1s1g5.gif')

}

</style>

</head>

<BODY >

<select onchange="setDivBG(this.value)">

<option value="style2">头像</option>

<option value="style1">flash</option>

</select>

<div id="div1" class="style2" >

</div>

</BODY>

一、简单插入flash图像<embed src="你的flash地址.swf"width="300" height="220"></embed>

二、调整插入flash图像

<table border="0" cellPadding="0" cellSpacing="0" width="100%"><tr><td height="210" background="背景图片.jpg"><object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 height=210 width=750><param name="movie" value="路径/文件名称.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><embed src="路径/文件名称.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="750" height="210" wmode="transparent"></embed></object></td></tr></table>

三、插入透明flash

1、dreamweaver插入透明flash代码:

<td width="375" height="88" rowspan="2" valign="bottom"background="images/tu.jpg"><!--设置单元格背景为图片背景(当然要放一个好看的了) --><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"width="373" height="166" align="center"><param name="movie" value="images/move.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><!--这里代码可使Flash背景透明 --><embed src="images/move.swf" width="373" height="166"align="center" quality="high"pluginspage="http://www.macromedia.com/go/getflashplayer"type="application/x-shockwave-flash"></embed></object>

</td>

2、frontpage插入透明flash代码:

<embed src="fish1.swf" quality=high width=50 height=50wmode=transparent type='application/x-shockwave-flash'></embed>

3、插入透明FLASH:

<embed src="***/***.swf" quality=high width=100% height=100%

wmode=transparent type='application/x-shockwave-flash'>6

4、透明flash覆盖代码:

<EMBED style="LEFT: 0pxPOSITION: absoluteTOP: 0pxabsolute: " align=right src=http://ysxiong.anyp.cn/PageLayout/UserDataA/Data53/USID200403062012220031/Articles/Images/040917060055890.swf width=1000 height=606 type=application/x-shockwave-flash wmode="transparent" quality="high" ></EMBED>