当前位置: 移动技术网 > IT编程>开发语言>JavaScript > jquery加载图片时以淡入方式显示的方法教程

jquery加载图片时以淡入方式显示的方法教程

2019年03月30日  | 移动技术网IT编程  | 我要评论
本文实例讲述了jquery加载图片时以淡入方式显示的方法。分享给大家供大家参考。具体实现方法如下: 代码如下: <html> <head> &

本文实例讲述了jquery加载图片时以淡入方式显示的方法。分享给大家供大家参考。具体实现方法如下:

代码如下:


<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title></title>
</head>
<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript">
 $(function(){
  $("img[id='load']").load(function(){
   $(this).hide();
   $(this).fadein(5000);
  });
 });
</script>
<body>
<p></p>
<p>
 <img id="load" src="./images/11_b.jpg" />
</p>
</body>
</html>

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网