Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/412.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 引导无限循环_Javascript_Twitter Bootstrap_Bootstrap Tour - Fatal编程技术网

Javascript 引导无限循环

Javascript 引导无限循环,javascript,twitter-bootstrap,bootstrap-tour,Javascript,Twitter Bootstrap,Bootstrap Tour,我试图让教程重定向到另一个页面,但当它重定向时,它进入了一个循环。我尽力了。现在我正在使用路径,我已经尝试使用onNext,但该教程根本不起作用。这是我的密码: <script> // Instance the tour var tour = new Tour({ steps: [ <?php if(!$master_id) { ?> { plac

我试图让教程重定向到另一个页面,但当它重定向时,它进入了一个循环。我尽力了。现在我正在使用路径,我已经尝试使用onNext,但该教程根本不起作用。这是我的密码:

    <script>
        // Instance the tour
    var tour = new Tour({
      steps: [
      <?php
      if(!$master_id)
      {
      ?>
          {

      placement:"bottom",
  backdrop:true,
  duration:5000,
element: "#user_signin",
title: "Sign in to your account",
content: "Click here to see the sign in form"
      }, 
 {
      placement:"bottom",
  backdrop:true,
  duration:5000,
element: "#user_signup",
title: "Create a new account",
content: "Click here to see the sign up form"
      }, 
      <?php
      }
      ?>
      {

      placement:"bottom",
  backdrop:true,
  duration:5000,
element: "#user_location",
title: "Choose your location",
content: "Select your location so we can show you tailored results and service providers close to you."
      },
      {
      placement:"top",
  backdrop:true,
  duration:5000,
element: "#autocomplete",
title: "Search for a service",
content: "Search for any service you require, our service categories range from automobile repairs to fashion design."
      },
      {
  placement:"top",
       backdrop:true,
  duration:5000,
element: "#autocompleteCity",
title: "Select a location",
content: "You can also select a particular location and search for a service in that location"
      },
       {
  placement:"top",
       backdrop:true,
  duration:5000,
element: "#all_categories",
title: "Select a service category",
content: "Visit a service category and view businesses in that category and those around you"
      },
      {

  placement:"top",
       backdrop:true,
  duration:5000,
element: "#footer",
title: "Useful links",
content: "Other useful links you may need."
      },
      {
  placement:"top",
       backdrop:true,
  duration:5000,
element: "#google_translate_element",
title: "Choose your language",
content: "Not fluent in english? select your prefered language."
      },
      {
  path: "s.php",
    placement:"bottom",
       backdrop:true,
  duration:4000,
element: "#all_search_result",
title: "View all results",
content: "View all results from your search"
      },
      {
  path: "s.php",
  placement:"bottom",
       backdrop:true,
  duration:4000,
element: "#my_search_result",
title: "View tailored results",
content: "View search results based on your selected location"
      }


      ],
      keyboard: true,
      redirect: true,




      }).init().start(true);


        </script>

你有没有想过?没有,我没有,最后没有使用它的名字,最后使用tourbus。。。它被剥去了,变得更具意义。我会尝试一下,你可能会在这里找到你的答案: