现在的位置: 首页 >> 网页设计 >> 网页设计文摘 >> 巧妙实现很酷的动态背景文字
添加时间:2005-10-30 来源:网教中国 作者:
巧妙实现很酷的动态背景文字

下面的效果别以为只有Flash才能做到,用Dreamweaver一样可以做!

首先建立一个层,放入文字并用上mask滤镜:

<div id="Layer1" style="font:40pt Arial Black;filter:mask(color=white);position:absolute; left:0px; top:0px; width:508px; height:120px; z-index:2">

建立一个层,写入<marquee>

<marquee behavior=scroll direction=right width=508 height=120 scrollamount=4 scrolldelay=0 >

最后插入图片即可!

全部的代码

<html>
<head>
<title>很酷的动态背景文字</title>
</head>
<body bgcolor="#FFFFFF" text="#000000" topmargin=0 leftmargin=0>
<div id="Layer1" style="font:40pt Arial Black;filter:mask(color=white);position:absolute; left:0px; top:0px; width:508px; height:120px; z-index:2">
<p>Dreamweaver</p>
</div>
<div id="Layer2" style="position:absolute; left:0px; top:0px; width:508px; height:120px; z-index:1">
<marquee behavior=scroll direction=right width=508 height=120 scrollamount=4 scrolldelay=0 >
<script language=javascript>
for(t=1;t<=1000;t++)
document.write("<img src=http://www.ccidnet.com/school/zhuan/3d/back.jpg>")
</script>
</marquee>
</div>
</body>
</html>

上一篇:网页编程安全漏洞全接触 下一篇:
大部分文章摘自网上,如有侵犯您的权益请与我们联系,我们会第一时间进行处理,谢谢! [ 打印文章 ] [ 关闭窗口 ]
推荐文章
 
相关文章
 
最新文章
·网页编程安全漏洞全接触
·实现浏览器全屏窗口的几种方法
·搜索引擎技术核心揭密
·公司建站完全手册--网页色彩设计
·为网页添加放大或缩小文字
·让弹出窗口变得“体贴”一些
·巧用SnagIt复制加密网页文字
·怎样才能把我的网站加入Google?
·为什么在Google上搜不到我的网页
·Google的网站收录和排名
Google