巧用CSS的RevealTrans滤镜 动画切换效果

 
 CSS的RevealTrans动态滤镜是一个神奇的滤镜,它能产生23种动态效果,更为奇妙的是它还能在23种动态效果中随机抽用其中的一种。用它来进行网页之间的动态切换,其它的非IE浏览器虽然不支持这个滤镜,但是支持透明滤镜的

 

以下实例 同时支持IE和FF


示例:

 
<html>
<head>
<title>政策法规</title>
<LINK href="style.css" type=text/css rel=stylesheet>
</head>
<body background=/Templets/images/zcwd_policy.gif οnlοad="playAd()">
 <table width=453 border=0 cellspacing=3 cellpadding=0>
  <tr>
   <td id=divText style="filter:revealTrans(Transition=23,Duration=2)"></td>
  </tr>
 </table>
 
 
 <div id="content_0" style="display:none">
  <TABLE cellSpacing=0 cellPadding=0 width=560 align=center border=0 >
   <TBODY>
    <TR>
     <TD width=31 height=29>
      <IMG height=20 src="/Templets/images/zcwd_5.gif" width=21>
     </TD>
     <TD width=529>
      问:如何现金提取市区城镇职工医疗保险医疗费综合减负金额?
     </TD>
    </TR>
    <TR>
     <TD background=/Templets/images/line_2.gif colSpan=2 height=1></TD>
    </TR>
    <tr><td height=10></td></tr>
    <TR>
     <TD>
      <IMG height=20 src="/Templets/images/zcwd_6.gif" width=21>
     </TD>
     
     <TD class=news>
      <DIV>&nbsp;&nbsp;&nbsp; (一)在保人员提取减负金额程序</DIV>
<DIV>&nbsp;&nbsp;&nbsp; 需要提取综合减负金额的参保人员,可到工商银行各营业网点(宁波大市范围内,下同)办理登记手续。办理登...&nbsp;&nbsp;<SPAN class=red><a href="/Html/pol_zcwd/2010-07/02/1014596539044261100702141059.html" target="_blank">&gt;&gt;详细内容</a></SPAN>
      
     </TD>
    </TR>
   </TBODY>
  </TABLE>
 </div>
 
 <div id="content_1" style="display:none">
  <TABLE cellSpacing=0 cellPadding=0 width=560 align=center border=0 >
   <TBODY>
    <TR>
     <TD width=31 height=29>
      <IMG height=20 src="/Templets/images/zcwd_5.gif" width=21>
     </TD>
     <TD width=529>
      问:市区城镇职工医疗保险医疗费综合减负每年什么时候划入个人历年账户?
     </TD>
    </TR>
    <TR>
     <TD background=/Templets/images/line_2.gif colSpan=2 height=1></TD>
    </TR>
    <tr><td height=10></td></tr>
    <TR>
     <TD>
      <IMG height=20 src="/Templets/images/zcwd_6.gif" width=21>
     </TD>
     
     <TD class=news>
      <DIV>&nbsp;&nbsp;&nbsp; 市级医保经办机构于每年7月1日将综合减负金额划入综合减负人员的历年个人账户。2008医保年度未申报提取的综合减负金额于2010年7月1日统一划入参保人员的历年个人账户。</DIV>
<DIV...&nbsp;&nbsp;<SPAN class=red><a href="/Html/pol_zcwd/2010-07/02/101437729137574020710143710.html" target="_blank">&gt;&gt;详细内容</a></SPAN>
      
     </TD>
    </TR>
   </TBODY>
  </TABLE>
 </div>
 
 <div id="content_2" style="display:none">
  <TABLE cellSpacing=0 cellPadding=0 width=560 align=center border=0 >
   <TBODY>
    <TR>
     <TD width=31 height=29>
      <IMG height=20 src="/Templets/images/zcwd_5.gif" width=21>
     </TD>
     <TD width=529>
      问:如何查询是否符合市区城镇职工医疗保险医疗费综合减负的条件?
     </TD>
    </TR>
    <TR>
     <TD background=/Templets/images/line_2.gif colSpan=2 height=1></TD>
    </TR>
    <tr><td height=10></td></tr>
    <TR>
     <TD>
      <IMG height=20 src="/Templets/images/zcwd_6.gif" width=21>
     </TD>
     
     <TD class=news>
      <DIV>&nbsp;&nbsp;&nbsp; 市劳动保障部门在每个医保年度结束后对医疗费用进行统算、审核,确定上年度符合条件的综合减负对象。参保人员可于每年7月1日起查询是否属于综合减负对象,查询渠道如下:</DIV>
<DIV>&nb...&nbsp;&nbsp;<SPAN class=red><a href="/Html/pol_zcwd/2010-07/02/1014255227125030100702101425.html" target="_blank">&gt;&gt;详细内容</a></SPAN>
      
     </TD>
    </TR>
   </TBODY>
  </TABLE>
 </div>
 
 <div id="content_3" style="display:none">
  <TABLE cellSpacing=0 cellPadding=0 width=560 align=center border=0 >
   <TBODY>
    <TR>
     <TD width=31 height=29>
      <IMG height=20 src="/Templets/images/zcwd_5.gif" width=21>
     </TD>
     <TD width=529>
      问:哪些人符合市区城镇职工医疗保险医疗费综合减负的条件?
     </TD>
    </TR>
    <TR>
     <TD background=/Templets/images/line_2.gif colSpan=2 height=1></TD>
    </TR>
    <tr><td height=10></td></tr>
    <TR>
     <TD>
      <IMG height=20 src="/Templets/images/zcwd_6.gif" width=21>
     </TD>
     
     <TD class=news>
      <DIV>&nbsp;&nbsp;&nbsp; 市区城镇职工基本医疗保险、住院医疗保险和外来务工人员大病保险参保人员在医保年度(当年5月1日至次年4月30日)内,门诊、特殊病种和住院治疗(包括应急记账、院外检查治疗、处方购药)发生的并在该医...&nbsp;&nbsp;<SPAN class=red><a href="/Html/pol_zcwd/2010-07/02/1014102406371449101410100702.html" target="_blank">&gt;&gt;详细内容</a></SPAN>
      
     </TD>
    </TR>
   </TBODY>
  </TABLE>
 </div>
 
 <script language="JavaScript">
Text = new Array();
 
 Text[0]=document.all['content_0'].innerHTML;
 
 Text[1]=document.all['content_1'].innerHTML;
 
 Text[2]=document.all['content_2'].innerHTML;
 
 Text[3]=document.all['content_3'].innerHTML;
 
if(Text.length==0){
  Text[0]="没有数据";
  Text[1]="请先录入";
}
var IDX= -1;
function playAd() {
 if (IDX==Text.length-1) {
  IDX=0;
 } else {
  IDX++;
 }
 var prefix = "";
 var divTextV = document.getElementById("divText");
 if(navigator.userAgent.indexOf("MSIE")>0)
 {
 divTextV.style.filter="revealTrans(Transition="+Math.floor(Math.random()*23+1)+",Duration=2)";
 divTextV.filters[0].apply();
 divTextV.innerHTML = prefix + Text[IDX];
 divTextV.filters[0].play();
 }else{
 divTextV.innerHTML = prefix + Text[IDX];
 }
}
 setInterval("playAd()",6000);
</script>
</body>
</html>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值