【发布时间】:2014-03-19 06:56:30
【问题描述】:
我想知道是否可以打开一个包含循环插件的新 page.html 并转到特定幻灯片。我的意思是,从 page1.html 到 page2.html 并在 slide 6 中启动插件。
我不太了解 JS,但这是我尝试使用的代码:
$(函数() { $('#cycle_images').cycle({ 超时:0, 速度:300, fx: 'scrollVert', 起始幻灯片:0 });
$('#button').click(function() {
window.location = 'page2.html'
$('#cycle_images').cycle(6);
return false;
});
});
非常感谢!!对不起我的英语不好:(
【问题讨论】:
-
第一页 - window.location = 'page2.html#6' , 第二页写你的脚本 if url[somehting]#6 cycle go to 6
-
嗨!非常感谢你的回答,我真的不知道如何把第二页的代码,像这样的东西?
-
请查看我的回答