[jQuery] help - NewB question; creation of a very, very basic slideshow with XML import
Ok,
I'm learning jQuery for the moment, but I have one problem I can't
solve... :(
I've just wrote a script that imports an XML-file with images (<image
path="folder/image.jpg" />).
I've succesfully appende them to a Div named - very original -
"#test2". The images are given a class "importImg".
Now I want to make a simple slideshow of the loaded images,
so after the XML is loaded I call a function Slide() like follows:
function Slide(){
$('img.importImg').each(function(index) {
$(this).show(1000);
$(this).hide(1000);
});
}
But somehow it shows and hides all the images at once. How do you make
it go step by step?
I know it's a basic JS-loop-thing, but I can't seem to find a
solution. No math brain I guess :(
I tried some plugins - but some of them don't work with 1.2 (cycle/
innerfade) and are a bit to complicated to help me out with this basic
problem...
thanx in advance!
benj