Using jQuery I would like to loop through an array of links and load the contents of each link into a DIV after a set interval. For example, if I have my parent page \"paren
var l = ["index.html","pictures.html","contact.html"], c = 0;
setInterval(function(){
$("#link a").attr("href",l[c]).html(l[c]);
if (c++ > l.length) c = 0;
}, 2000);