jquery背景自动切换特效

查看效果网址:
http://keleyi.com/a/bjad/4kwkql05.htm

 

 本特效的jquery版本只支持1.9.0以下。

代码如下:

  1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2 <html xmlns="http://www.w3.org/1999/xhtml">
  3 <head>
  4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5 <title>jquery背景自动切换特效-柯乐义</title>
  6 <link rel="stylesheet" type="text/css" href="http://keleyi.com/keleyi/phtml/jqplug/9/main.css" />
  7 <link rel="stylesheet" type="text/css" href="http://keleyi.com/keleyi/phtml/jqplug/9/bgstretcher.css" />
  8 <script src="http://keleyi.com/keleyi/pmedia/jquery-1.8.3.min.js" type="text/javascript"></script>
  9 <script type="text/javascript" src="http://keleyi.com/keleyi/phtml/jqplug/9/bgstretcher.js"></script>
 10 <script type="text/javascript">
 11 $(document).ready(function(){
 12 
 13 // Initialize Backgound Stretcher    
 14 $('BODY').bgStretcher({
 15 images: ['http://keleyi.com/keleyi/phtml/jqplug/9/images/sample-1.jpg'
 16 , 'http://keleyi.com/keleyi/phtml/jqplug/9/images/sample-2.jpg'
 17 , 'http://keleyi.com/keleyi/phtml/jqplug/9/images/sample-3.jpg'
 18 , 'http://keleyi.com/keleyi/phtml/jqplug/9/images/sample-4.jpg'
 19 , 'http://keleyi.com/keleyi/phtml/jqplug/9/images/sample-5.jpg'
 20 , 'http://keleyi.com/keleyi/phtml/jqplug/9/images/sample-6.jpg'],
 21 imageWidth: 1024, 
 22 imageHeight: 768, 
 23 slideDirection: 'N',
 24 slideShowSpeed: 1000,
 25 transitionEffect: 'fade',
 26 sequenceMode: 'normal',
 27 buttonPrev: '#prev',
 28 buttonNext: '#next',
 29 pagination: '#nav',
 30 anchoring: 'left center',
 31 anchoringImg: 'left center'
 32 });
 33 
 34 });
 35 </script>
 36 
 37 <script type="text/javascript" src="http://keleyi.com/keleyi/phtml/jqplug/9/main.js"></script>
 38 
 39 </head>
 40 <body>
 41 <div id="page" style="display: none_;">
 42 <div class="page-top">&nbsp;</div>
 43 <div class="page-content"><div class="page-wrapper">
 44 <h1>背景图片自动切换·柯乐义·Background Stretcher jQuery Plugin Demo</h1>
 45 
 46 <form action="#"><div>
 47 <div class="column">
 48 <div class="row">
 49 <h2>Transition Effect</h2>
 50 <select id="effect">
 51 <option value="none">None</option>
 52 <option value="fade">Fade</option>
 53 <option value="simpleSlide">Simple Slider</option>
 54 <option value="superSlide">Super Slider</option>
 55 </select>
 56 </div>
 57 <div class="row slide-directions">
 58 <h2>Slide Direction</h2>
 59 <div class="column small">
 60 <div class="row"><input type="radio" id="dir-n" name="direction" class="direction" checked="checked"/><label for="dir-n">North</label></div>
 61 <div class="row"><input type="radio" id="dir-s" name="direction" class="direction"/><label for="dir-s">South</label></div>
 62 <div class="row"><input type="radio" id="dir-w" name="direction" class="direction"/><label for="dir-w">West</label></div>
 63 <div class="row"><input type="radio" id="dir-e" name="direction" class="direction"/><label for="dir-e">East</label></div>
 64 </div>
 65 <div class="column small super-directions">
 66 <div class="row"><input type="radio" id="dir-nw" name="direction" class="direction"/><label for="dir-nw">North-West</label></div>
 67 <div class="row"><input type="radio" id="dir-ne" name="direction" class="direction"/><label for="dir-ne">North-East</label></div>
 68 <div class="row"><input type="radio" id="dir-sw" name="direction" class="direction"/><label for="dir-sw">South-West</label></div>
 69 <div class="row"><input type="radio" id="dir-se" name="direction" class="direction"/><label for="dir-se">South-East</label></div>
 70 </div>
 71 </div>
 72 <div class="row">
 73 <h2>Sequence Mode</h2>
 74 <input type="radio" id="normal" name="mode" class="mode" checked="checked"/><label for="normal">Normal</label>
 75 <input type="radio" id="back" name="mode" class="mode"/><label for="back">Back</label>
 76 <span class="mode-randome"><input type="radio" id="random" name="mode" class="mode"/><label for="random">Random</label></span>
 77 </div>
 78 </div>
 79 <div class="column">
 80 <div class="row">
 81 <h2>Manual Controls</h2>
 82 <div class="nav-buttons">
 83 <a href="javascript:;" id="prev">Previouse image</a>&nbsp;&nbsp;&nbsp;
 84 <a href="javascript:;" id="next">Next image</a>
 85 </div>
 86 </div>
 87 <div class="row nav-buttons">
 88 <span class="pager">Pager:</span> <div id="nav">&nbsp;</div>
 89 </div>
 90 <div class="row">
 91 <a href="javascript:;" id="toggleAnimation" >Pause Animation</a>
 92 </div>
 93 </div>
 94 </div></form>
 95 </div></div>    
 96 <div class="page-bottom">&nbsp;</div>
 97 </div>
 98 <div style="text-align:center;clear:both">
 99 
100 <br>
101 <p>适用浏览器:IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. <a herf="http://keleyi.com/a/bjad/4kwkql05.htm">原文</a></p>
102 </div>
103 
104 </body>
105 </html>

web前端:http://www.cnblogs.com/jihua/p/webfront.html

转载于:https://www.cnblogs.com/jihua/p/jqbackimg.html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/273875.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

pandas和spark的区别

参考&#xff1a;https://blog.csdn.net/u013613428/article/details/78138857

Android ImageView图片自适应

网络上下载下来的图片自适应&#xff1a;android:adjustViewBounds"true"&#xff08;其详细解释在下面&#xff09;<ImageViewandroid:id"id/dynamic_item_image"android:layout_width"wrap_content"android:layout_height"wrap_conten…

Python之IO编程——文件读写、StringIO/BytesIO、操作文件和目录、序列化

BytesIO StringIO操作的只能是str&#xff0c;如果要操作二进制数据&#xff0c;就需要使用BytesIO。BytesIO实现了在内存中读写bytes&#xff0c;我们创建一个BytesIO&#xff0c;然后写入一些bytes&#xff1a; 写入的不是str&#xff0c;而是经过UTF-8编码的bytes。 (1).参考…

都江堰很美-佩服古人_Crmhf的一天

地震遗迹&#xff1a;一条背街&#xff0c;损坏严重&#xff0c;基本没什么人。真正的水利工程&#xff0c;值得每个人学习&#xff1a;转载于:https://www.cnblogs.com/crmhf/p/3823157.html

爬虫的增量式抓取和数据更新

不管是产生新页面&#xff0c;还是原本的页面更新&#xff0c;这种变化都被称为增量&#xff0c; 而爬取过程则被称为增量爬取。那如何进行增量式的爬取工作呢&#xff1f;回想一下爬虫的工作流程&#xff1a; 发送URL请求 ----- 获得响应 ----- 解析内容 ----- 存储内容 我们…

Spring Data JPA初使用 *****重要********

Spring Data JPA初使用我们都知道Spring是一个非常优秀的JavaEE整合框架&#xff0c;它尽可能的减少我们开发的工作量和难度。在持久层的业务逻辑方面&#xff0c;Spring开源组织又给我们带来了同样优秀的Spring Data JPA。通常我们写持久层&#xff0c;都是先写一个接口&#…

flask-笔记

-super() 使用super()保留基模板中定义的原始内容 - link标签&#xff1a; 用来指定当前文档和外部资源的关系。它最常见的是用来链接样式表&#xff0c;也用来创建网站图标(既是网站图标样式也包括移动设备和app图标)。 -csrf: CSRF概念&#xff1a;CSRF跨站点请求伪造(…

MySQL 无法连接

Host localhost is not allowed to connect to this MySQL server 错误 解决办法&#xff1a; C:\Program Files\MySQL\MySQL Server 5.5\my.ini 在[mysqld]下加下面两行&#xff0c; skip-name-resolve skip-grant-tables 重启mysql的windows服务&#xff0c;在mysql命令行界面…

能让你少写1000行代码的20个正则表达式

参考: (1).http://www.codeceo.com/article/20-regular-expressions.html

http请求中的Query String Parameters、Form Data、Request Payload

参考: (1).(http请求参数之Query String Parameters、Form Data、Request Payload) - https://www.jianshu.com/p/c81ec1a547ad

蜜罐

http://www.projecthoneypot.org/home.php转载于:https://www.cnblogs.com/diyunpeng/p/3534507.html

php中json_decode返回数组或对象的实例

1.json_decode() json_decode (PHP 5 > 5.2.0, PECL json > 1.2.0) json_decode — 对 JSON 格式的字符串进行编码 说明 mixed json_decode ( string $json [, bool $assoc ] ) 接受一个 JSON 格式的字符串并且把它转换为 PHP 变量 参数 json 待解码的 json string 格式的…

如何精通js

参考: (1.)https://www.zhihu.com/search?typecontent&q%E5%A6%82%E4%BD%95%E7%B2%BE%E9%80%9Ajs

程序员怎么样才能进入微软?

程序员怎么样才能进入微软&#xff1f; 程序员到微软中国总裁 “打工皇帝”长沙晒成功之道 程序员面试之道之走进微软 应该是西北大学的学生&#xff0c;距离我好近&#xff08;我也在西安&#xff09;&#xff0c;可是又好远&#xff08;人家拿到了MS的offer&#xff09;。 专…

python中的装饰器-(重复阅读)

---1--- 假设我们要增强某个函数的功能&#xff0c;比如&#xff0c;在函数调用前后自动打印日志&#xff0c;但又不希望修改某个函数的定义&#xff0c;这种在代码运行期间动态增加功能的方式&#xff0c;称之为“装饰器”&#xff08;Decorator). 装饰器本质上是一个Python…

[转帖]好技术领导,差技术领导

团队合作一个优秀的技术领导必然是团队的一份子&#xff0c;他们认为当整个团队成功时自己才称得上成功。他们不仅要做好繁杂和不讨好的本职工作&#xff0c;还要清除项目中的障碍&#xff0c;从而让整个团队能够以100%的效率运转起来。一个好的技术领导会努力拓宽团队在技术上…

python有哪些常用的库

参考: (1).https://www.zhihu.com/question/20501628/answer/19542741(Python 常用的标准库以及第三方库有哪些&#xff1f;)

C#打开文件对话框和文件夹对话框

打开文件对话框OpenFileDialog OpenFileDialog ofd new OpenFileDialog();ofd.Filter "Excel文件(*.xls;*.xlsx)|*.xls;*.xlsx|所有文件|*.*";ofd.ValidateNames true;ofd.CheckPathExists true;ofd.CheckFileExists true;if (ofd.ShowDialog() DialogResult.O…

debian安装flash插件

$ sudo apt-get install flashplugin-nonfree 转载于:https://www.cnblogs.com/vipzrx/p/3554839.html

python中的拷贝

1.赋值: 只是复制了新对象的引用&#xff0c;不会开辟新的内存空间。 2.浅拷贝: 创建新对象&#xff0c;其内容是原对象的引用。 浅拷贝有三种形式&#xff1a;切片操作&#xff0c;工厂函数&#xff0c;copy模块中的copy函数。 如&#xff1a; lst [1,2,3,[4,5]] …