pagepilingのナビゲーションについて、hoverするとtooltipが表示される仕様なのですが、
これを常に表示させたいです。
以下の部分を修正すればよいかと思ったのですが…
c.normalScrollElements
1 e.setMouseWheelScrolling(!1) 2 }), b(h).on("mouseleave", c.normalScrollElements, function () { 3 e.setMouseWheelScrolling(!0) 4 })); 5 var F = (new Date).getTime(); 6 b(h).on("click touchstart", "#pp-nav a", 7 function (a) { 8 a.preventDefault(); 9 a = b(this).parent().index(); 10 l(b(".pp-section").eq(a)) 11 }); 12 b(h).on({ 13 mouseenter: function () { 14 var a = b(this).data("tooltip"); 15 b('<div class="pp-tooltip ' + c.navigation.position + '">' + a + "</div>").hide().appendTo(b(this)).fadeIn(200) 16 }, 17 mouseleave: function () { 18 b(this).find(".pp-tooltip").fadeOut(200, function () { 19 b(this).remove() 20 }) 21 } 22 }, "#pp-nav li") 23 }
プラグインのURLは以下になります。
https://alvarotrigo.com/pagePiling/
HTML
<div id="pagepiling"> <div class="contents" id="section1"> <!--contents01--> </div> <div class="contents" id="section2"> <!--contents02--> </div> <div class="contents" id="section3"> <!--contents03--> </div> <div class="contents" id="section4"> <!--contents04--> </div> </div> <ul id="menu"> <li data-menuanchor="page1" class="active"><a href="#page1">Page 1</a></li> <li data-menuanchor="page2"><a href="#page2">Page 2</a></li> <li data-menuanchor="page3"><a href="#page3">Page 3</a></li> <li data-menuanchor="page4"><a href="#page4">Page 4</a></li> </ul>
JavaScript
$(document).ready(function () { $('#pagepiling').pagepiling({ menu: '#menu', anchors: ['page1', 'page2', 'page3', 'page4'], navigation: { 'position': 'right', 'tooltips': ['section1', 'section2', 'section3', 'section4'] }, scrollingSpeed: 1000, sectionSelector: '.contents' }); });
jqueryのバージョンは1.9.1です。
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー