• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Redirect one sibling page when it reaches the end of it's content to another sibling page in muse.

New Here ,
Jan 07, 2017 Jan 07, 2017

Copy link to clipboard

Copied

Hello!
  I am a student and I'm working on a website that narrates a story through images and animations. It is a responsive parallax website. I want one sibling page of my muse site to automatically redirect to another sibling page once it reaches the end of it's contents. I do not want any button or have a mousedown as that will interrupt my narrative and the user experience i'm trying to achieve. I need help with writing the code.

Questions

1. What do i type as my URL address or location of the sibling page?

If my code is the following, what do i write in the location brackets?

<html>

<head>

<script type="text/javascript">

var tId = "";

var iId = "";

var tId ="";

var iId = "";

window.onload=function() {

  tid = setTimeout(function() {

    iId = setInterval(function () {

      var before = window.pageYOffset;

      window.scrollBy(0,1000); // change 10 to the number of pixels to scroll

      if (before >= window.pageYOffset) {

        clearInterval(iId);

        tId = setTimeout(function() { location='(what will come here?)'},0);

      }

    },50); // change 50 into how fast you want to scroll

  },3000); // change 3000 (3 secs) to how long you want to wait before scrolling

}

</script>

</head>

</html>

2. I am using widgets from the muse market place. Will this code overwrite any of the widget effects?

Please help.

This is my first time to use code. Please correct me if I am going wrong.

Thanks a lot,

Stuti

Views

186

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Jan 09, 2017 Jan 09, 2017

Hi Stuti,

It is highly possible that the code in widgets could conflict your hand written codes.

The only way we can check on this by testing the code with widgets available.

You can upload your site on Business Catalyst server for free to test.

Regards,

Ankush

Votes

Translate

Translate
Guest
Jan 07, 2017 Jan 07, 2017

Copy link to clipboard

Copied

I have the same question

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Jan 09, 2017 Jan 09, 2017

Copy link to clipboard

Copied

LATEST

Hi Stuti,

It is highly possible that the code in widgets could conflict your hand written codes.

The only way we can check on this by testing the code with widgets available.

You can upload your site on Business Catalyst server for free to test.

Regards,

Ankush

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines