Jump to content

Javascript and Pages


Heosforo

Recommended Posts

Posted

Hello guys
I've been fighting with bxslider for some time, and still can't make it work :mad:

This in header

<script src="http://site.com/js/jquery.bxslider.min.js"></script>
<link href="http://site.com/js/jquery.bxslider.css" rel="stylesheet" />

and this in a "Manual HTML page" (Pages)

<script type="text/javascript">
$(document).ready(function(){
  $('.bxslider').bxSlider();
  mode: 'vertical',
  slideWidth: 300,
  minSlides: 4,
  maxSlides: 4,
  autoStart: true,
  slideMargin: 10
  });
});  
</script>

With firebug I see that the css is working, but the javascript appears inactive.
KmFOazn.png

What am I doing wrong? 

Thanks for any help.

Posted

You're passing the parameters wrong

try this

$('.bxslider').bxSlider({
  mode: 'vertical',
  slideWidth: 300,
  minSlides: 4,
  maxSlides: 4,
  autoStart: true,
  slideMargin: 10
});
Posted
5 hours ago, TAMAN said:

You're passing the parameters wrong

try this


$('.bxslider').bxSlider({
  mode: 'vertical',
  slideWidth: 300,
  minSlides: 4,
  maxSlides: 4,
  autoStart: true,
  slideMargin: 10
});

ahhh gosh, I love you :lol:

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...