爱易网
IT新闻
IT新闻
爱易资讯
网站搭建
云虚拟主机教程
云服务器教程
Apache教程
IIS教程
Nginx教程
网站策划
站长文章
推广教程
淘宝客教程
网页设计
HTML教程
XHTML教程
CSS教程
HTML5教程
CSS3教程
JavaSript基础
JQuery教程
Node.js教程
前端技术
Ajax教程
Js特效
Xml教程
平面设计
页面UI设计
photoshop教程
程序开发
AI人工智能
Asp教程
Php教程
Asp.Net教程
Net Core教程
C#教程
Java教程
Jsp教程
开发技术
微信小程序教程
Uniapp开发教程
微信公众号开发
Andriod教程
IOS教程
DOS教程
Python教程
Docker教程
Windows Container教程
数据库
MSSQL教程
MySQL教程
Redis教程
Access教程
Oracle教程
数据库教程
操作系统
Linux教程
Windows教程
MAC教程
Cisco教程
交换机教程
防火墙教程
搜索
爱易网页
JS特效
文字特殊效果
文字特殊效果
日期:2014-05-18 浏览次数:20140 次
欢迎光临爱易网网页脚本特效中心,点击运行按钮演示特效:
以下是程序代码
脚本说明: 把如下代码加入<body>区域中 <style type="text/css"> <!-- body {background: url(back.gif);} .sample {font-style: italic; font-family: arial black; font-size: 40px; font-weight: bold; cursor: hand;} #backgr2 {width: 200px; height: 70; background: black url(images/back1.jpg) center center no-repeat;} #backgr3 {} --> </style> <div class="webfx-main-body"> <h2>3D Text</h2> This was made using one span with blur and then another one atop of it. <p onclick="alert(this.innerHTML)"> <span class="sample" style="width: 200px; height: 70; color: black; filter: Blur(Add=0, Direction=135, Strength=10);" >WebFX</span><span class="sample" style="position: relative; left: -201; top: -15; width: 200; color: #2984ff;"> WebFX</span> <h2>Glass Text</h2> Same tecnique as above but both have alpha filters added. <p onclick="alert(this.innerHTML)"> <span class="sample" style="width: 200px; height: 70; color: lightskyblue; filter: Alpha(Opacity=60) Blur(Add=0, Direction=135, Strength=20);" >WebFX</span><span class="sample" style="position: relative; left: -201; top: -15; width: 200; color: lightskyblue; filter: Alpha(Opacity=60);" >WebFX</span> <h2>Inner Shadow</h2> First I added a mask() to remove the inside, then a shadow() was added. Since there is nothing inside the shadow is displayed inside. Then I removed the mask using chroma(). Before this I added the same text with a white color and the second text was moved above this using position: relative; left: -200px; <p onclick="alert(this.innerHTML)"> <span class="sample" style="width: 200px; height: 70; color: white;" >WebFX</span><span class="sample" style="width: 200px; height: 70; position: relative; left: -200; filter: mask(color=red) shadow(direction=135) chroma(color=red);" >WebFX</span> <h2>Outline Text</h2> You could just add glow but it looks better if the glowing is placed on the inside. To do this you add mask, glow and chroma. <p onclick="alert(this.innerHTML)"> <span class="sample" style="width: 200px; height: 70; filter: mask(color=red) glow(color=black, strength=1) chroma(color=red);">WebFX</span> </div> <a href="http://www.aiyiweb.com/js/">欢迎访问爱易网JS特效</a>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
上一篇:狡猾的按钮特效
下一篇:文字的随机伸缩变化
免责声明:
本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
相关资料
更多>
诺基亚依托规模效应 猛攻国际市场空白
新浪微博推粉丝头条功能 意欲与大号分成
优酷土豆携手新浪微博 谋攻移动视频失地
八位知名设计师评iOS7:新鲜但复杂
摩托罗拉中国区将再裁员 助力公司变身
中国手游总裁及8名高管集体下岗,被指涉不当交易
靠价格战赚取资费套餐利润差,虚拟运营商必死无疑
想玩P2P?几个您必须知道的潜规则
论:三大运营商运用商店逆袭并非不能够
推荐阅读
更多>
诺基亚仍是第二大手机商:功用机有利可图
京东确定IPO定价区间 最高募资16.9亿美元
亚马逊推特价闪购纪念入华十周年 总裁一职仍空缺
网易微博将正式关闭 用户迁至轻博客LOFTER
华为任正非:家族成员不会成为接班人
英特尔技术高管离任 电视业务或受影响
蘑菇街CEO陈琪:2015将回归社会化电商
“宽带中国”计划已正式上升为国家战略
独立工具APP:为亿级用户的商业化而愁
“组合拳”怎么打 拆解小米新玩法
中兴通讯不打机海战术 将向中高端手机转型
富士康人事故骚动方寸 不惜血本下注电商
杨元庆去年总薪酬1.33亿元
不提老罗,不说情怀,仅从十四个投诉问题入手谈锤子手机
苹果20年以来首次发债 融资170亿美元
乐视今日临时停牌 受广电酝酿新规消息影响
腾讯再次重申:普通微信誉户相对不收费
盛大游戏走向衰落的根源:免费游戏模式惹的祸
史玉柱卸任巨人网络CEO 继位人选引猜想
传搜狗估值12亿美元 与360谈判进入白热化