(function(){
var curIndex = 0,
timeInterval = 5000,
arr = [
{link:"http://www.12377.cn",bpos:"0 0"},
{link:"http://www.12377.cn",bpos:"0 -0px"},
{link:"http://www.12377.cn/node_548470.htm",bpos:"0 -40px"},
{link:"http://gov.163.com/special/jiazhiguan/",bpos:"0 -80px"},
{link:"http://www.12377.cn/txt/2015-01/20/content_7622927.htm",bpos:"0 -120px"}
],
obj = document.getElementById("wljd")
function changeImg() {
curIndex = curIndex > arr.length-1?0:curIndex;
obj.style.backgroundPosition=arr[curIndex].bpos
obj.href = arr[curIndex].link
curIndex++
}
setInterval(changeImg,timeInterval)
})()