Do You Want to Learn Marketing or Coding? Do You Want to Learn Marketing or Coding?

Bxslide Links and Side Navigation

Share on facebook
Facebook
Share on twitter
Twitter
Share on linkedin
LinkedIn

Here is a way to create a dynamic sidebar. The system will count the list items and associate it with the proper slider.

Here is the javascript code.

$.each($('.side-nav li'), function(index, value) {
console.log(index + ':' + value);
$(".story-nav li a").eq(index).addClass('slide-'+index);
});

$('.side-nav li a').click(function(){
var num_id = $(this).attr('class').match(/\d+/); //
event.preventDefault();
slider.goToSlide(num_id);
});

You can then add this html code on your page:

By adding these items, you can create a side navigation that will scroll to the proper slide. You can name the link what ever you want.

I Really Need

Reviewing nerdy stuff is expensive.

Consider clicking on this ad & buying that item you REALLY wanted from Amazon.

It helps a ton!

Leave Your Thoughts