0
我通過我的網站瀏覽了一下。我希望用戶可以在遊覽結束後按鈕點擊手動啓動遊覽。如何手動啓動Bootstrap Tour?
按鈕:
<a href="#" id="tour"><i class=""></i> Start Tour</a>
引導遊覽腳本。
<script type="text/javascript">
var tour = new Tour();
tour.addSteps([
{
element: "#step1",
title: "Welcome.",
content: "Welcome to step one.",
placement: "top"
}
]);
tour.addSteps([
{
element: "#step2",
title: "Contact us.",
content: "If you have any questions, please contact us.",
placement: "left"
}
]);
tour.start();
</script>
掛鉤鏈接到點擊後執行的代碼的功能。 – deceze