Bootstrap Tour导航问题

时间:2016-08-07 20:51:46

标签: twitter-bootstrap

我尝试使用this example为我的网站实施bootstrap之旅 我很容易..但是当脚本跟随补丁到第二页时我遇到问题,因为我有非标准链接.....喜欢

 path: "/NextPage.php", 

但如果我使用标准链接

/index.php?page=orders

一切正常。

当我点击“下一步按钮”游览菜单消失时,没有任何反应。如果我手动关注链接$(function() { // define tour var tour = new Tour({ basePath: location.pathname.slice(1, location.pathname.lastIndexOf('/')), steps: [ { path: "/index.php?page=index", element: "#showtransit", title: "Title of my step", content: "Content of my step" }, { path: "/index.php?page=orders", element: "#Show_orders_types", title: "Title of my step", content: "Content of my step" } ], backdrop: true, }); // init tour tour.init(); // start tour $('#start-tour').click(function() { tour.restart(); }); }); ,则应继续巡视。

似乎bootstrap tour无法关注我的链接而且无法更改补丁.. 任何想法如何解决它?

  {
    element: "#Show_orders_types",
    title: "Title of my step",
    content: "Content of my step",
    redirect: function(){ document.location.href = 'index.php?&page=orders';}
  }

也没用?

filename *string*
checksum *string*
added_date *date*
General [this is a map]
    location 
        lat *string*
        lon *string*
    make *string*
    model *string*

1 个答案:

答案 0 :(得分:0)

解决方案是OnNext:event。 + JS

  {

    element: "#showtransit",
    title: "Title of my step",
    content: "Content of my step",
    onNext: function(){ document.location.href = 'index.php?&page=orders';}
    },