0
嗨,我已經創建了下面的HTML頁面與旋轉3鏈接的iframe如何添加淡出和實際上旋轉鏈接時?如何在iframe中添加淡入/效果鏈接旋轉
<!doctype html>
<html>
<head>
</head>
<body>
<iframe id="foo" style="overflow: hidden; height: 100%; width: 100%; position: absolute;" height="100%" width="100%"></iframe>
<script>
(function() {
var e = document.getElementById('foo'),
f = function(el, url) {
el.src = url;
},
urls = [
'http://link1',
'http://link2'
],
i = 0,
l = urls.length;
(function rotation() {
if (i != l-1) {
i++
} else {
i = 0;
}
f(e, urls[i]);
setTimeout(arguments.callee, 5000);
})();
})();
</script>
\t </body>
</html>