jQuery Text Crossfade

我知道各种图像交叉淡入淡出插件,但我需要交叉淡入淡出文本.就像,我在a,a或元素中有文本A,我希望它消失,而淡入,B代替它.

任何帮助真的很感激.

解决方法

快速演示 here.
<html>    
   <head>
   <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js"></script>
   <script type="text/javascript">
      $(function() {
            $('#test').fadeOut(2000);
            $('#test1').fadeIn(2000);
      });
    </script>
    <style>
       h1 {font-size:12em;position:absolute; left:0;top:0}
       #test1 {display:none}
    </style>
    </head>
    <body>
       <h1 id="test">A</h1> 
       <h1 id="test1">B</h1>
    </body>
    </html>

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: &lt;span id=&quot...
jQuery 添加水印 &lt;script src=&quot;../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...