① 替换背景图片、人物信息、替换时间
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | <!-- banner start --> < header id = "banner" class = "banner" > < div class = "wrapper" > < div id = "background-carousel" > < div id = "myCarousel" class = "carousel slide" data-ride = "carousel" > < div class = "carousel-inner" > <!-- 作者:zz 时间:2017-03-11 描述:轮播图片放在了item-no1、item-no2、item-no3样式中,若要修改,请至样式文件 --> < div class = "item item-no1 active" ></ div > < div class = "item item-no2" ></ div > < div class = "item item-no3" ></ div > </ div > </ div > </ div > <!-- /.background-carousel end --> < div class = "container" > < div class = "row" > < div class = "col-sm-12 text-center" > < span class = "banner-logo" > <!-- 作者:zz 时间:2017-03-11 描述:修改人物信息 --> < h2 >Mr.Li & Miss.Pan < small >are getting married</ small ></ h2 > </ span > </ div > </ div > < div class = "row" > < div class = "col-sm-offset-3 col-sm-7" > < div class = "timing" > <!-- 作者:zz 时间:2017-03-11 描述:修改时间,通过修改data-date的属性值,达到效果 --> < div id = "count-down-2" style = "height:140px;" data-date = "2017-03-01 00:00:00" > </ div > </ div > <!-- /.timing --> </ div > </ div > </ div > < div class = "color-overlay-bg" ></ div > </ div > <!-- /.color-overlay end --> </ header > <!-- banner end --> |
② gallery婚纱照弹框效果的核心代码,见script.js中 194行 和 jquery.magnific-popup.js中1154 行,如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | script.js $( '.gallery-popup' ).magnificPopup({ ................. } }); jquery.magnific-popup.js $.magnificPopup.registerModule( 'image' , { options: { .............. }, ..... getImage: function (item, template) { ....... }, onLoadError = function () { ....... }, ........ return template; }); |
特别申明:
本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com