网站公告列表

没有公告

加入收藏
设为首页
联系站长
轻松学电脑>>网页制作>>心得技巧>>巧妙实现很酷的动态背景文字
双击滚屏阅读

巧妙实现很酷的动态背景文字

下面的效果别以为只有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>

 
  • 上一篇文章:

  • 下一篇文章:
  • 广告
    阅读top10
    普通文章如何防止robot骚扰你的…
    普通文章给你的QQ在线状态配上…
    普通文章让文本输入框只能输入…
    普通文章如何像表格table一样对…
    普通文章网页中添加调用qq或者…
    普通文章rel=nofollow互联网为…
    普通文章网页自动转向代码
    普通文章innerHTML在Firefox和…
    普通文章Google已推出基于Co-o…
    普通文章巧妙实现很酷的动态背…
    普通文章网页编程安全漏洞全接…
    普通文章实现浏览器全屏窗口的…
    普通文章搜索引擎技术核心揭密
    普通文章公司建站完全手册--网…
    查看巧妙实现很酷的动态背景文字全部内容
    本站提供:电脑教程 网页制作 Flash教程 PhotoShop教程等免费教程。
    Copyright © 2006-2008轻松学电脑All Rights Reserved