最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

jQuery插件pagewalkthrough實(shí)現(xiàn)引導(dǎo)頁(yè)效果

 更新時(shí)間:2015年07月05日 11:53:02   投稿:hebedich  
這篇文章主要介紹了jQuery插件pagewalkthrough實(shí)現(xiàn)引導(dǎo)頁(yè)效果的方法和示例代碼,十分的詳細(xì)和實(shí)用,有需要的小伙伴可以參考下。

現(xiàn)在很多網(wǎng)站不僅是介紹,更多的是有一些功能,怎么樣讓客戶快速的知道網(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)容了,希望大家能夠喜歡。

相關(guān)文章

  • 在jQuery 1.5中使用deferred對(duì)象的代碼(翻譯)

    在jQuery 1.5中使用deferred對(duì)象的代碼(翻譯)

    Deferred是jQuery1.5新增的一個(gè)特性,很多人把它翻譯成 “異步隊(duì)列”,我覺(jué)得比較靠譜,畢竟和“延遲”沒(méi)啥關(guān)系,不過(guò)這篇文章中我還采用deferred這個(gè)單詞。
    2011-03-03
  • 在jQuery1.5中使用deferred對(duì)象 著放大鏡看Promise

    在jQuery1.5中使用deferred對(duì)象 著放大鏡看Promise

    在那篇經(jīng)典的關(guān)于jQuery1.5中Deferred使用方法介紹的文章中(譯文見(jiàn)這里),有下面一段描述
    2011-03-03
  • jquery引用方法時(shí)傳遞參數(shù)原理分析

    jquery引用方法時(shí)傳遞參數(shù)原理分析

    只需將js引用并設(shè)置下變量就行了,但一直沒(méi)搞明白原理,這次弄清了如何傳遞、設(shè)置多個(gè)(很多個(gè))參數(shù),如果你也不明白可以看看
    2014-10-10
  • JQuery從頭學(xué)起第一講

    JQuery從頭學(xué)起第一講

    JQuery的重要性對(duì)一個(gè)coder來(lái)說(shuō)應(yīng)該是不言而喻的, 多少次在應(yīng)聘的時(shí)候被問(wèn)及是否會(huì)JQuery;多少次在寫腳本的時(shí)候因?yàn)闉g覽器的不兼容而吐血;多少次因?yàn)樾枰媚_本做一個(gè)簡(jiǎn)單的效果而寫到手抽筋。JQuery出現(xiàn)后,很多問(wèn)題都被輕易解決了。
    2010-07-07
  • jquery checkbox,radio是否選中的判斷代碼

    jquery checkbox,radio是否選中的判斷代碼

    jquery checkbox,radio是否選中的判斷代碼,需要的朋友可以參考下。
    2010-03-03
  • jQuery插件imgPreviewQs實(shí)現(xiàn)上傳圖片預(yù)覽

    jQuery插件imgPreviewQs實(shí)現(xiàn)上傳圖片預(yù)覽

    這篇文章主要介紹了jQuery插件imgPreviewQs實(shí)現(xiàn)上傳圖片預(yù)覽的相關(guān)資料,需要的朋友可以參考下
    2016-01-01
  • jQuery中inArray方法注意事項(xiàng)分析

    jQuery中inArray方法注意事項(xiàng)分析

    這篇文章主要介紹了jQuery中inArray方法注意事項(xiàng),結(jié)合實(shí)例形式分析了jQuery中inArray方法變量判斷的相關(guān)注意事項(xiàng),需要的朋友可以參考下
    2016-01-01
  • jQuery實(shí)現(xiàn)切換頁(yè)面布局使用介紹

    jQuery實(shí)現(xiàn)切換頁(yè)面布局使用介紹

    在很多網(wǎng)站尤其在一些購(gòu)物網(wǎng)站上,展示商品的列表頁(yè)提供了許多商品,用戶可以選擇商品的展示方式如列表方式展示和櫥窗方式展示等。在本例中,將給您講述如何實(shí)現(xiàn)這種效果
    2011-10-10
  • jquery日歷插件datepicker用法分析

    jquery日歷插件datepicker用法分析

    這篇文章主要介紹了jquery日歷插件datepicker用法,結(jié)合實(shí)例形式分析了jquery日歷插件datepicker的定義與使用技巧,需要的朋友可以參考下
    2016-01-01
  • 關(guān)于webuploader插件使用過(guò)程遇到的小問(wèn)題

    關(guān)于webuploader插件使用過(guò)程遇到的小問(wèn)題

    這篇文章主要為大家詳細(xì)解決了關(guān)于webuploader插件使用過(guò)程遇到的小問(wèn)題,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下
    2016-11-11

最新評(píng)論

祁东县| 上饶市| 乐清市| 瑞昌市| 文山县| 汾阳市| 桃园县| 利川市| 临湘市| 永靖县| 武夷山市| 罗定市| 米林县| 堆龙德庆县| 济源市| 金秀| 大兴区| 平谷区| 尉犁县| 阜南县| 新野县| 桦川县| 广丰县| 泰安市| 龙里县| 清河县| 衡阳县| 丹凤县| 安徽省| 云梦县| 长顺县| 德庆县| 金川县| 绵竹市| 横山县| 沾化县| 达拉特旗| 大厂| 太谷县| 中阳县| 渑池县|