setInterval(function(){document.getElementsByTagName("li")[0].click()},1000);
setinterval
原文:http://www.cnblogs.com/zhenxides/p/5990649.html