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.pswp.cn/news/273875.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/273875.shtml
英文地址,請注明出處:http://en.pswp.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]] …