动感超强的JS图片轮换特效
动感超强的JS图片特效_我们
* { margin:0; padding:0; }
body {
margin:5px auto;
text-align:center;
background:#f0f0f0;
}
img { margin:0; border:0; padding:0; }
#eLore {
position:relative;
margin:0 auto;
width:800px; height:339px;
}
#eLore_wrap {
position:relative;
margin:0 auto;
overflow:hidden;
width:800px; height:339px;
background:#369;
}
#eLore .eLore_img {
position:absolute; top:0;
width:120px; height:339px;
overflow:hidden;
font-size:50px;
line-height:340px;
}
#eLore .eLore_out {
position:absolute; top:0;
width:120px; height:339px;
overflow:hidden;
font-size:10px;
line-height:340px;
}
Loading...
//H
\n';
}
/*
var sDiv = '
' + iImg++ + '
\n';
eLore_wrap.innerHTML += sDiv;
*/
var oDiv = document.createElement('div');
oDiv.className = 'eLore_img';
oDiv.style.right = iImg*80 +'px';
oDiv.style.background = 'url(' + aImg[iA] + ') -720px top no-repeat';
//oDiv.appendChild(document.createTextNode(iImg));
eLore_wrap.appendChild(oDiv);
iImg++;
eLore_move();
}
function eLore_move(){
var oDiv = eLore_wrap.getElementsByTagName('div');
for (var i=1; i
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]