views:

27

answers:

2

Hi guys, I am trying to create an easy slideshow but It is not that easy at all :(.

I have few problems to make it work.

Here is my code so far: http://jsfiddle.net/WUE9g/1/

PS: I would much appreciate any kind of help.

Thank you!

A: 

I think that your parenthesis are not matching. Use

$(function() {
    rotatePics(1);
});

instead of

$(function() {
    rotatePics(1);
}

Since $ is a shortcut to the jQuery function, you need to use it like any other function (e.g. rotatePics()).

elusive
A: 

You had an unclosed function call in your code, check now: http://jsfiddle.net/WUE9g/3/

Use firebug, it has an error console that tells you what's going on.

aularon
@aularon It works now. Thanks! Also, do you know a good way to add two buttons(right - left) to slide content? Thanks again.
Martin
@Martin, fix the `<ul>` css to make it appear, and make an `onclick="rotatePics(-1)"` and `onclick="rotatePics(1)`" on the left/right buttons.
aularon