jQuery插件pagewalkthrough實(shí)現(xiàn)引導(dǎo)頁(yè)效果
現(xiàn)在很多網(wǎng)站不僅是介紹,更多的是有一些功能,怎么樣讓客戶(hù)快速的知道網(wǎng)站有哪些功能呢?這里pagewalkthrough.js插件能幫我們實(shí)現(xiàn),它是一個(gè)輕量級(jí)的jQuery插件,它可以幫助我們創(chuàng)建一個(gè)遮罩引導(dǎo)層,實(shí)現(xiàn)頁(yè)面功能引導(dǎo)功能,引導(dǎo)完成顯示頁(yè)面內(nèi)容。
html代碼:
<div id="walkthrough-content"> <div id="walkthrough-1"> <h3>歡迎來(lái)到網(wǎng)頁(yè)引導(dǎo)示例DEMO演示頁(yè)</h3> <p>頁(yè)面功能介紹引導(dǎo)頁(yè)的效果是通過(guò)一款叫做<a target="_blank">pagewalkthrough.js</a>的jQuery插件實(shí)現(xiàn)的。</p> <p>點(diǎn)擊下一步了解更多...</p> </div> <div id="walkthrough-2"> 這里是網(wǎng)站LOGO,點(diǎn)擊這里可以直通網(wǎng)站首頁(yè)。 </div> <div id="walkthrough-3"> 點(diǎn)擊這里可以直接看插件的使用教程。 </div> <div id="walkthrough-4"> 點(diǎn)擊這里去下載源碼,免費(fèi)的哦。。 </div> <div id="walkthrough-5"> 這是頁(yè)腳和版權(quán)信息。 </div> </div>
js文件和代碼:
<script type="text/javascript" src="jquery.min.js"></script> <script type="text/javascript" src="jquery.pagewalkthrough.min.js"></script> <script> $(function() { // Set up tour $('body').pagewalkthrough({ name: 'introduction', steps: [ { popup: {content: '#walkthrough-1',type: 'modal' } }, {wrapper: '#logo',popup: {content: '#walkthrough-2',type: 'tooltip',position: 'bottom'} }, {wrapper: 'h2.top_title a',popup: {content: '#walkthrough-3',type: 'tooltip',position: 'bottom'} }, {wrapper: 'a[, popup: {content: '#walkthrough-4',type: 'tooltip',position: 'right'} }, {wrapper: '#footer p',popup: {content: '#walkthrough-5',type: 'tooltip',position: 'top'} }] }); // Show the tour $('body').pagewalkthrough('show'); }); </script>
css文件:
<link rel="stylesheet" href="css/jquery.pagewalkthrough.css"> <!--[if lt IE 9]> <script src="html5.js"></script> <![endif]--> <style type="text/css"> .demo{text-align:center} .button {display: inline-block;outline: none;cursor: pointer;text-align: center;text-decoration: none;font: 22px/100% 'Microsoft yahei',Arial, Helvetica, sans-serif;padding: .5em 2em .55em;text-shadow: 0 1px 1px rgba(0,0,0,.3);-webkit-border-radius: .5em; -moz-border-radius: .5em;border-radius: .5em;-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);-moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);box-shadow: 0 1px 2px rgba(0,0,0,.2); } .button:hover {text-decoration: none;} .button:active {position: relative;top: 1px;} /* green */ .green {color: #e8f0de;border: solid 1px #538312;background: #64991e;background: -webkit-gradient(linear, left top, left bottom, from(#7db72f), to(#4e7d0e));background: -moz-linear-gradient(top, #7db72f, #4e7d0e);filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#7db72f', endColorstr='#4e7d0e');} .green:hover {background: #538018;background: -webkit-gradient(linear, left top, left bottom, from(#6b9d28), to(#436b0c));background: -moz-linear-gradient(top, #6b9d28, #436b0c);filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#6b9d28', endColorstr='#436b0c');color:#fff} .green:active {color: #a9c08c;background: -webkit-gradient(linear, left top, left bottom, from(#4e7d0e), to(#7db72f));background: -moz-linear-gradient(top, #4e7d0e, #7db72f);filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4e7d0e', endColorstr='#7db72f');} #walkthrough-content{display:none} #walkthrough-content h3{height:30px; line-height:30px} #walkthrough-content p{line-height:28px} </style>
以上所述就是本文的全部?jī)?nèi)容了,希望大家能夠喜歡。
- 簡(jiǎn)潔易用的iOS引導(dǎo)頁(yè)制作
- Android實(shí)現(xiàn)繞球心旋轉(zhuǎn)的引導(dǎo)頁(yè)效果
- iOS App引導(dǎo)頁(yè)開(kāi)發(fā)教程
- iOS 引導(dǎo)頁(yè)的鏤空效果實(shí)例
- Android開(kāi)發(fā)實(shí)戰(zhàn)之漂亮的ViewPager引導(dǎo)頁(yè)
- RxJava兩步打造華麗的Android引導(dǎo)頁(yè)
- Android使用ViewPager實(shí)現(xiàn)啟動(dòng)引導(dǎo)頁(yè)
- iOS App初次啟動(dòng)時(shí)的用戶(hù)引導(dǎo)頁(yè)制作實(shí)例分享
- iOS實(shí)現(xiàn)動(dòng)態(tài)元素的引導(dǎo)圖效果
- iOS基于UIScrollView實(shí)現(xiàn)滑動(dòng)引導(dǎo)頁(yè)
相關(guān)文章
jquery獲取一個(gè)元素下面相同子元素的個(gè)數(shù)代碼
本節(jié)主要介紹了jquery如何獲取一個(gè)元素下面相同子元素的個(gè)數(shù)代碼,需要的朋友可以參考下2014-07-07基于jQuery實(shí)現(xiàn)定位導(dǎo)航位置效果
這篇文章主要為大家詳細(xì)介紹了基于jQuery實(shí)現(xiàn)定位導(dǎo)航位置效果,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下2017-11-11jquery文檔操作wrap()方法實(shí)例簡(jiǎn)述
這篇文章主要介紹了jquery文檔操作wrap()方法,以實(shí)例形式簡(jiǎn)單分析了wrap()方法用某個(gè)標(biāo)簽將某個(gè)元素包起來(lái)的使用技巧,需要的朋友可以參考下2015-01-01jQuery尋找n以?xún)?nèi)完全數(shù)的方法
這篇文章主要介紹了jQuery尋找n以?xún)?nèi)完全數(shù)的方法,涉及jQuery數(shù)值計(jì)算的相關(guān)技巧,需要的朋友可以參考下2015-06-06基于jQuery實(shí)現(xiàn)select下拉選擇可輸入附源碼下載
一般的select下拉框是不能輸入的,只能供大家選擇,今天小編給大家分享基于jQuery實(shí)現(xiàn)select下拉選擇可輸入附源碼下載,需要的朋友參考下2016-02-02jquery實(shí)現(xiàn)簡(jiǎn)易的移動(dòng)端驗(yàn)證表單
本文給大家匯總介紹了幾個(gè)常用的jquery實(shí)現(xiàn)簡(jiǎn)易的移動(dòng)端驗(yàn)證表單,非常的實(shí)用,有需要的小伙伴可以進(jìn)來(lái)參考下。2015-11-11解決jquery的ajax調(diào)取后端數(shù)據(jù)成功卻渲染失敗的問(wèn)題
今天小編就為大家分享一篇解決jquery的ajax調(diào)取后端數(shù)據(jù)成功卻渲染失敗的問(wèn)題,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2018-08-08Jquery ajaxStart()與ajaxStop()方法(實(shí)例講解)
本篇文章主要是對(duì)Jquery中的ajaxStart()與ajaxStop()方法進(jìn)行了介紹,需要的朋友可以過(guò)來(lái)參考下,希望對(duì)大家有所幫助2013-12-12