2018河南旅游年票:急求代码:能否在静态网页中加入flash作为背景?

来源:百度文库 编辑:神马品牌网 时间:2024/04/29 14:02:46
看到一些网站上计入了金鱼之类的flash作为背景,很好看,在静态网页中怎么实现啊,求代码。
一楼的没有明白我的意思,就象在背景图片上还能加入一些网页内容一样。我想实现的目标是:用flash做背景,在有背景的位置还能加上透明的gif图片。

1.直接透明代码
<EMBED style="LEFT: 250px; WIDTH: 550px; POSITION: absolute; TOP: 1px; HEIGHT: 600px" align=right src=http://www.52cr.cn/images/fish.swf width=500 height=600
type=application/octet-stream ;; quality="high" wmode="transparent">
这里的宽和高可以自己修改!

width=500 height=600
2.背景图片加透明FLASH代码

<P align=center>
<TABLE border=0>
<TBODY>
<TR>
<TD style="FILTER: Alpha(opacity=100,style=2)" width=255 background=http://www.gload.de/files/59bd7a1dd5e7b59458460a6d5.gif height=300>
<P><B><EMBED align=right src=http://mouse520.51.net/flash/36.swf width=255 height=300 type=application/octet-stream wmode="transparent" quality="high" ;;></EMBED></B></P></TD></TR></TOBDY></TBODY></TABLE></P>

晕,不用代码了,只要你有那个FLASH就行了,然后用表格定位,你想插入哪里做背景就在哪里弄。

单是flash是不可能做网页背景的!
不过flash可以做成透明的,然后加在网页里!
你说的还有一种可能是:JS效果!
你可以把效果的页面发过来我看看,然后再给你做答啊!

在footer.htm的<body>
下面加入
<div style="z-index:1; position:absolute; top:auto; border:'0' 'border-style' '#ffffff'; width:100%; height:100% ">
<embed width="100%" height="100%" src="$imgpath/$stylepath/bg.swf" wmode="transparent">
</embed></div>
上面为背景层
接着加第二层 即论坛的主体
接着上面的代码 加入
<div style="z-index:2; position:absolute; top:0; border:'0' 'border-style' '#ffffff'; width:100%; height:100% ">

DIV是成对的
别忘了在footer.htm的最后的注释语句前
加上</div>