我正在使用 Foundation Joyride 并且每次加载网页时都会开始游览,但是如何仅在第一次加载网页时才开始游览?
我指的是Foundation joyride start only on first load的问题。但不工作。
我的设置是..
<script src="~/Scripts/Foundation/foundation.js"></script>
<script src="~/Scripts/jquery.cookie.js"></script>
<script src="~/Scripts/Foundation/foundation.joyride.js"></script>
<body>
.......................
<ol class="joyride-list" data-joyride id="tour">
<li data-id="welcome" data-text="Next" data-options="tip_location:top">
<p>Welcome, you can manage your accont details here.</p>
</li>
<li data-id="numero2" data-button="End">
<p>You can see all the Log details here.</p>
</li>
</ol>
<script>
$(window).load(function () {
$("#tour").joyride({
cookieMonster: true,
cookieName: 'JoyRide'
});
});
$(document).foundation();
$(document).foundation('joyride', 'start');
</script>
</body>