基于jquery实现的文字淡入淡出效果
2018-10-12 14:03
761 查看
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script type="text/javascript" language="javascript" src="../../jquery-1.7.1.min.js">
</script>
<script language="javascript">
$(document).ready(function(){
$("#btn1").toggle(function(){
$("p").fadeOut("slow");
},function(){
$("p").fadeIn("slow");
});
$("#btn2").toggle(function(){
$("p").fadeTo("slow",0.66);
},function(){
$("p").fadeTo("slow",0.66);
});
});
</script>
</head>
<body>
<p style="background:#3F3">this is pi<br>
this is pi<br>
this is pi<br>
this is pi<br>
this is pi<br>
this is pi<br>
</p>
<input type="button" value="淡入/淡出" id="btn1">
</body>
<input type="button" value="淡入/淡出 效果 透明度0.66" id="btn2">
</html>
您可能感兴趣的文章:
相关文章推荐
- 基于jquery实现的文字淡入淡出效果
- 基于jquery实现的文字淡入淡出效果
- 基于jquery实现的文字淡入淡出效果
- jQuery实现图片文字淡入淡出效果
- 基于jQuery实现淡入淡出效果轮播图
- 基于jQuery实现文字打印动态效果
- jQuery实现图片文字淡入淡出效果
- 基于jquery实现的文字向上跑动类似跑马灯的效果
- 基于jquery实现的文字向上跑动类似跑马灯的效果
- 基于jQuery实现最基本的淡入淡出效果实例
- 基于jQuery实现最基本的淡入淡出效果实例
- 基于jquery实现二级联动效果
- jquery 淡入淡出效果的简单实现
- jquery实现点击查看更多内容控制段落文字展开折叠效果
- jQuery文字横向滚动效果的实现代码
- jQuery实现首页图片淡入淡出效果的方法
- 基于JS实现html中placeholder属性提示文字效果示例
- 基于jQuery实现的双11天猫拆红包抽奖效果
- jQuery实现为控件添加水印文字效果(附源码)