开发者

Javascript/jquery Images slideshow does not work

开发者 https://www.devze.com 2023-01-15 03:59 出处:网络
I am trying to create an easy slideshow but It is not that easy at all :(. I have few problems to make it work.

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 kin开发者_开发知识库d of help.

Thank you!


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.


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()).

0

精彩评论

暂无评论...
验证码 换一张
取 消