Home › Forums › JavaScript › Anythingslider several questions › Re: Anythingslider several questions
June 26, 2012 at 9:52 am
#104870
Member
Ahh you’re right, I missed this bit of code in the “onInitialized” callback (updated demo):
// Callback when the plugin finished initializing
onInitialized: function(e, slider) {
if (window.location.hash) {
slider.gotoPage(window.location.hash);
}
slider.$items.find('h6').each(function(){
// add some prefix to the id so setting the hash doesn't
// make the page jump
this.id = "tmp_" + this.id;
});
},