Please finally a simple code to animate multiple images for a header

I know it's there in java

not jquery

but something easily modifiable

it's been a long time I want that for a website

Views: 58

Reply to This

Replies to This Discussion

Give this a try

<script type="text/javascript">
var images = ['image.jpg', 'image.jpeg', 'image.jpg'];
var i = 0;

setInterval(function(){
x$('#xg_masthead').css('background-image', function() {
if (i >= images.length) {
i=0;
}
return 'url(' + images[i++] + ')';
});
}, 5000);
</script>

RSS

Latest Activity

Kos replied to Donna Mac's discussion '3.0 Video - can someone explain?'
"idk what else Ning (if any) Ning will be releasing with respect to videos but they way it stands a…"
3 minutes ago
Crestini Activi ! replied to Rafael's discussion 'Multiple Chat rooms for Ning 3.0'
"Im loving the idea !!! I was thinking about this idea before, but I thought that if I was going to…"
8 minutes ago
Suzie Nielsen replied to Donna Mac's discussion '3.0 Video - can someone explain?'
"I think I am getting it! Thanks!"
10 minutes ago
Kos replied to Donna Mac's discussion '3.0 Video - can someone explain?'
"I will say if one has groups, each group could establish their own youtube channel and since we can…"
11 minutes ago
Suzie Nielsen replied to Donna Mac's discussion '3.0 Video - can someone explain?'
"You must have took me for a real blond bimbo!LOL! close sometimes! Just when I get the hang of…"
20 minutes ago
Donna Mac replied to Donna Mac's discussion '3.0 Video - can someone explain?'
"Oh okay whew!  I was wondering why you didn't know what youtube was...LOL LOL.  When…"
36 minutes ago
Angie Fisher replied to Angie Fisher's discussion 'Help for a 3.0 Newbie Please....'
"thanks Kos, that helped tremendously!"
43 minutes ago
Suzie Nielsen replied to Jeff Gilder's discussion 'Nav options' in the group The Sandbox
"Yes, I agree  2.0 was easier for me too, but I am liking the versatility of this 3.0 I advise…"
46 minutes ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service