Hello.. I want the Anythingslider to apear 3 times on the same page.
But I'm having problems regarding the navigationformatter
Code:
<script type="text/javascript">
var slider1 = ['april', 'maj', 'juni', 'Quote #2', 'Image #2'];
function formatText(index, panel) {
return slider1[index - 1] || index;
}
</script>
This gives the panels their name.
But I can't figure out how to give different names to panels in different sliders.
I thought that I could just make one like this:
Code:
<script type="text/javascript">
var slider2 = ['hello', 'hi', 'bonjour', 'holla', 'Image #2'];
function formatText(index, panel) {
return slider2[index - 1] || index;
}
</script>
But that doesn't work.
Can anyone help me with this?
Thanks.
The Anythingslider