Javascript slider jquery

<script type="text/javascript">
  $(window).load(function() {
    $('.flexslider').flexslider({
        controlNav: false,
        animation: "fade",
        startAt: 0,                     
        slideshow: true,                
        slideshowSpeed: 7000,
    });     
});
</script>

Why doesn't my slider work? I copy pasted it from an other script so I am clueless where to start.

Answers


Delete the comma after slideshowSpeed: 7000, and you are good to go ;)


Need Your Help

Annotation Type Expected

junit intellij-idea

I just created this unit test, and I get a red squiggly under @Test that says "Annotation Type Expected". What does this mean?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.