品读家园论坛

 找回密码
 注册
搜索
查看: 1200|回复: 1

代码

[复制链接]
发表于 2009-10-24 00:25 | 显示全部楼层 |阅读模式
巧用CSS的RevealTrans滤镜<BR><FONT class=content><FONT class=name01>(冯永曜 2001年04月30日 11:52)</FONT><BR><BR><BR><BR>  CSS的RevealTrans动态滤镜是一个神奇的滤镜,它能产生23种动态效果,更为奇妙的是它还能在23种动态效果中随机抽用其中的一种。用它来进行网页之间的动态切换,简直方便极了,你只要在网页源代码的&lt; head &gt;与&lt; /head &gt;之间插入这样一行代码:&lt; Meta content=revealTrans(Transition=14,Duration=3.0) http-equiv=Page-enter &gt;,当你进入这个页面时,网页将象拉幕一样从中间向两边拉开,是不是别具一格?!<BR>  RevealTrans滤镜只有两个参数,Duration:是切换时间,以秒为单位;Transition:是切换方式,它有24种方式,详见下表:<BR><PRE>切换效果   Transition参数值      切换效果       Transition参数值
矩形从大至小      0              随机溶解            12
矩形从小至大      1            从上下向中间展开      13
圆形从大至小      2            从中间向上下展开      14
圆形从小至大      3            从两边向中间展开      15
向上推开          4            从中间向两边展开      16
向下推开          5            从右上向左下展开      17
向右推开          6            从右下向左上展开      18
向左推开          7            从左上向右下展开      19
垂直形百叶窗      8            从左下向右上展开      20
水平形百叶窗      9              随机水平细纹        21
水平棋盘          10             随机垂直细纹        22
垂直棋盘          11            随机选取一种特效     23
</PRE><BR></FONT>
回复

使用道具 举报

 楼主| 发表于 2009-10-24 00:33 | 显示全部楼层
<P>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"&gt;<BR>&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;片头文字&lt;/TITLE&gt;<BR>&lt;META http-equiv=Content-Type content="text/html; charset=gb2312"&gt;<BR>&lt;META content="MSHTML 6.00.2900.5726" name=GENERATOR&gt;&lt;/HEAD&gt;</P>
<P><BR>&lt;BODY style="POSITION: relative" bgColor=#cfcdc6 background=背景图片 scroll=no&gt;</P>
<P>&lt;STYLE&gt;BODY .img {<BR>&nbsp;BORDER-RIGHT: #6b654b 0px dashed; BORDER-TOP: #6b654b 0px dashed; FILTER: revealtrans glow(strength=8, color=#e4e4de,</P>
<P>enabled=1); LEFT: 0px; VISIBILITY: hidden; BORDER-LEFT: #6b654b 0px dashed; BORDER-BOTTOM: #6b654b 0px dashed; POSITION: absolute; TOP: 0px<BR>}<BR>.mess {<BR>&nbsp;BORDER-RIGHT: #6b654b 0px dashed; PADDING-RIGHT: 0px; BORDER-TOP: #cc0000 0px dashed; PADDING-LEFT: 0px; FONT-WEIGHT: normal; FONT-SIZE: 12pt; FILTER: revealtrans progid:dXImageTransform.Microsoft.Gradient(endColorstr=#dad9d3, <BR>startColorstr=#222222, gradientType=0) glow(strength=8, color=#222222, enabled=1); LEFT: 0px; VISIBILITY: hidden; OVERFLOW: auto; BORDER-LEFT: #6b654b 0px dashed; WIDTH: 600px; COLOR: #f2f1db; SCROLLBAR-ARROW-COLOR: #e9edea; PADDING-TOP: 0px; BORDER-BOTTOM: #6b654b 0px dashed; FONT-FAMILY: Papyrus; SCROLLBAR-BASE-COLOR: #595959; POSITION: absolute; TOP: 0px; HEIGHT: 500px; BACKGROUND-COLOR: #595959; PADDING-: 0px<BR>}<BR>.knop {<BR>&nbsp;BORDER-RIGHT: #6b654b 1px dashed; BORDER-TOP: #6b654b 1px dashed; FONT-SIZE: 12pt; BACKGROUND: #cccccc; LEFT: 10px; BORDER-LEFT: #6b654b 1px dashed; WIDTH: 115px; CURSOR: hand; COLOR: #000000; BORDER-BOTTOM: #6b654b 1px dashed; FONT-FAMILY: Papyrus; POSITION: absolute; HEIGHT: 35px<BR>}<BR>A:link {<BR>&nbsp;FONT-SIZE: 11pt; COLOR: #000000; TEXT-DECORATION: underline<BR>}<BR>A:visited {<BR>&nbsp;FONT-SIZE: 22pt; COLOR: #333333<BR>}<BR>A:hover {<BR>&nbsp;COLOR: #6b654b<BR>}<BR>A:active {<BR>&nbsp;COLOR: #222222<BR>}<BR>&lt;/STYLE&gt;</P>
<P>&lt;META content="MSHTML 6.00.2900.2963" name=GENERATOR&gt;<BR>&lt;BGSOUND balance=0 src="音乐地址" volume=0 loop=99&gt;<BR>&lt;BUTTON language=vbscript class=knop id=openBtn style="LEFT: 920px; WIDTH: 60px; POSITION: absolute; TOP: 150px" onclick=showpic1() height:30px&gt;图1&lt;/BUTTON&gt;<BR>&lt;BUTTON language=vbscript class=knop id=openBtn style="LEFT: 920px; WIDTH: 60px; POSITION: absolute; TOP: 200px" onclick=showpic2() height:30px&gt;图2&lt;/BUTTON&gt;<BR>&lt;BUTTON language=vbscript class=knop id=openBtn style="LEFT: 920px; WIDTH: 60px; POSITION: absolute; TOP: 250px" onclick=showpic3() height:30px&gt;图3&lt;/BUTTON&gt;<BR>&lt;BUTTON language=vbscript class=knop id=openBtn style="LEFT: 920px; WIDTH: 60px; POSITION: absolute; TOP: 300px" onclick=showpic4() height:30px&gt;图4&lt;/BUTTON&gt;<BR>&lt;BUTTON language=vbscript class=knop id=openBtn style="LEFT: 920px; WIDTH: 60px; POSITION: absolute; TOP: 350px" onclick=showpic5() height:30px&gt;图5&lt;/BUTTON&gt; <BR>&lt;BUTTON language=vbscript class=knop id=openBtn style="LEFT: 920px; WIDTH: 60px; POSITION: absolute; TOP: 400px" onclick=showpic6() height:30px&gt;图6&lt;/BUTTON&gt;</P>
<P>&lt;DIV style="Z-INDEX: 1; LEFT: 20px; WIDTH: 650px; POSITION: absolute; TOP: 0px; HEIGHT: 520px"&gt;<BR>&lt;IMG class=img id=pic1 src="图片1"&gt; <BR>&lt;IMG class=img id=pic2 src="图片2"&gt; <BR>&lt;IMG class=img id=pic3 src="图片3"&gt; <BR>&lt;IMG class=img id=pic4 src="图片4"&gt; <BR>&lt;IMG class=img id=pic5 src="图片5"&gt; <BR>&lt;IMG class=img id=pic6 src="图片6"&gt; <BR>&lt;/DIV&gt;<BR>&lt;SCRIPT language=vbscript&gt;&nbsp;&nbsp; <BR>'------------------------------------------<BR>'备注<BR>'------------------------------------------</P>
<P>dim sch, scw</P>
<P>Sub Window_Onload()<BR>window.status="&nbsp;&nbsp;签名&nbsp; "<BR>sch=document.body.clientheight<BR>scw=document.body.clientwidth<BR><FONT color=red>pic1w=700<BR>pic1h=550<BR>pic2w=700<BR>pic2h=550<BR>pic3w=700<BR>pic3h=550<BR>pic4w=700<BR>pic4h=550<BR>pic5w=700<BR>pic5h=550<BR>pic6w=700<BR>pic6h=550</FONT></P>
<P><FONT color=red>pic1.style.postop=(sch/2.2)-(pic1h/2.2)<BR>pic1.style.posleft=(scw/1.5)-(pic1w/1.5)<BR>pic2.style.postop=(sch/2.2)-(pic2h/2.2)<BR>pic2.style.posleft=(scw/1.5)-(pic2w/1.5)<BR>pic3.style.postop=(sch/2.2)-(pic3h/2.2)<BR>pic3.style.posleft=(scw/1.5)-(pic3w/1.5)<BR>pic4.style.postop=(sch/2.2)-(pic4h/2.2)<BR>pic4.style.posleft=(scw/1.5)-(pic4w/1.5)<BR>pic5.style.postop=(sch/2.2)-(pic5h/2.2)<BR>pic5.style.posleft=(scw/1.5)-(pic5w/1.5)<BR>pic6.style.postop=(sch/2.2)-(pic5h/2.2)<BR>pic6.style.posleft=(scw/1.5)-(pic5w/1.5)</FONT></P>
<P><FONT color=red>End Sub</FONT></P>
<P><FONT color=red>Sub showpic1()<BR>pic1.filters(0).Apply()<BR>pic1.filters(0).transition=1<BR>pic1.style.visibility="visible"<BR>pic1.filters(0).Play(3.000)<BR>pic2.style.visibility="hidden"<BR>pic3.style.visibility="hidden"<BR>pic4.style.visibility="hidden"<BR>pic5.style.visibility="hidden"<BR>pic6.style.visibility="hidden"</FONT></P>
<P><FONT color=red>End Sub</FONT></P>
<P><FONT color=red>Sub showtext()<BR>text.filters(0).Apply()<BR>text.filters(0).transition=8<BR>text.style.visibility="visible"<BR>text.filters(0).Play(3.000)<BR>pic1.style.visibility="hidden"<BR>pic2.style.visibility="hidden"<BR>pic3.style.visibility="hidden"<BR>pic4.style.visibility="hidden"<BR>pic5.style.visibility="hidden"<BR>pic6.style.visibility="hidden"</FONT></P>
<P><FONT color=red>End Sub</FONT></P>
<P><FONT color=red>Sub showpic2()<BR>pic1.style.visibility="hidden"<BR>pic2.filters(0).Apply()<BR>pic2.filters(0).transition=9<BR>pic2.style.visibility="visible"<BR>pic2.filters(0).Play(3.000)<BR>pic3.style.visibility="hidden"<BR>pic4.style.visibility="hidden"<BR>pic5.style.visibility="hidden"<BR>pic6.style.visibility="hidden"</FONT></P>
<P><FONT color=red>End Sub</FONT></P>
<P><FONT color=red>Sub showpic3()<BR>pic1.style.visibility="hidden"<BR>pic2.style.visibility="hidden"<BR>pic3.filters(0).Apply()<BR>pic3.filters(0).transition=3<BR>pic3.style.visibility="visible"<BR>pic3.filters(0).Play(3.000)<BR>pic4.style.visibility="hidden"<BR>pic5.style.visibility="hidden"<BR>pic6.style.visibility="hidden"</FONT></P>
<P><FONT color=red>End Sub</FONT></P>
<P><FONT color=red>Sub showpic4()<BR>pic1.style.visibility="hidden"<BR>pic2.style.visibility="hidden"<BR>pic3.style.visibility="hidden"<BR>pic4.filters(0).Apply()<BR>pic4.filters(0).transition=14<BR>pic4.style.visibility="visible"<BR>pic4.filters(0).Play(3.000)<BR>pic5.style.visibility="hidden"<BR>pic6.style.visibility="hidden"</FONT></P>
<P><FONT color=red>End Sub</FONT></P>
<P><FONT color=red>Sub showpic5()<BR>pic1.style.visibility="hidden"<BR>pic2.style.visibility="hidden"<BR>pic3.style.visibility="hidden"<BR>pic4.style.visibility="hidden"<BR>pic5.filters(0).Apply()<BR>pic5.filters(0).transition=6<BR>pic5.style.visibility="visible"<BR>pic5.filters(0).Play(3.000)<BR>pic6.style.visibility="hidden"</FONT></P>
<P><FONT color=red>End Sub</FONT></P>
<P><FONT color=red>Sub showpic6()<BR>pic1.style.visibility="hidden"<BR>pic2.style.visibility="hidden"<BR>pic3.style.visibility="hidden"<BR>pic4.style.visibility="hidden"<BR>pic5.style.visibility="hidden"<BR>pic6.filters(0).Apply()<BR>pic6.filters(0).transition=8<BR>pic6.style.visibility="visible"<BR>pic6.filters(0).Play(3.000)</FONT></P>
<P><BR><FONT color=red>End Sub</FONT></P>
<P><FONT color=red>Sub showpic7()<BR>pic1.style.visibility="hidden"<BR>pic2.style.visibility="hidden"<BR>pic3.style.visibility="hidden"<BR>pic4.style.visibility="hidden"<BR>pic5.style.visibility="hidden"<BR>pic6.style.visibility="hidden"</FONT></P>
<P><FONT color=red>End Sub</FONT></P>
<P><FONT color=red>Sub showpic8()<BR>pic1.style.visibility="hidden"<BR>pic2.style.visibility="hidden"<BR>pic3.style.visibility="hidden"<BR>pic4.style.visibility="hidden"<BR>pic5.style.visibility="hidden"<BR>pic6.style.visibility="hidden"</FONT></P>
<P><FONT color=red>End Sub</FONT></P>
<P><FONT color=red>Sub showpic9()<BR>pic1.style.visibility="hidden"<BR>pic2.style.visibility="hidden"<BR>pic3.style.visibility="hidden"<BR>pic4.style.visibility="hidden"<BR>pic5.style.visibility="hidden"<BR>pic6.style.visibility="hidden"</FONT></P>
<P><FONT color=red>End Sub<BR>Sub Window_onresize()<BR>window_onload<BR>End Sub<BR>&lt;/SCRIPT&gt;<BR></FONT>&lt;/BODY&gt;&lt;/HTML&gt;</P>
<P>&nbsp;</P>
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|品读家园论坛 ( 鄂ICP备19005928号 )

GMT+8, 2025-5-11 08:08 , Processed in 0.094726 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表