Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errorr #452

Open
PablooGit opened this issue Jul 10, 2022 · 0 comments
Open

Errorr #452

PablooGit opened this issue Jul 10, 2022 · 0 comments

Comments

@PablooGit
Copy link

It is very easy! We can use flag to work out this problem!
My code:

var isLinkTo = 1;
var S = new iSlider(document.getElementById('rec-silder'), list, {
isAutoplay: 0,
isLooping: 1,
isOverspread: false,
animateTime: 800,
plugins: ['dot'],
renderComplete: function () {
},
onSlideStart: function (e) {
isLinkTo = 1;
},
onSlide: function (e) {
isLinkTo = 0;
},
onSlideEnd: function (e) {
if (isLinkTo === 1) {
window.location.href = "www.baidu.com";
}
}
});

@PablooGit PablooGit reopened this Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant