Created
July 6, 2010 18:01
-
-
Save turugina/465707 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="http://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load("jquery", "1.3.1"); | |
</script> | |
</head> | |
<body> | |
<div class="test"> | |
<script type="text/javascript"> | |
$(function() { | |
var emblist = [ | |
'<iframe style="background:transparent;" width="380" height="168" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://embed.pixiv.net/code.php?id=7720043_527bb465bc3de3fa5b2e2bab1c442aff"></iframe>', | |
'<iframe style="background:transparent;" width="380" height="168" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://embed.pixiv.net/code.php?id=7788521_676fbcc168620948eba7d5a559bb9e11"></iframe>', | |
'<iframe style="background:transparent;" width="380" height="168" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://embed.pixiv.net/code.php?id=9367782_12b3383de8394c14bd836ddd65f11cc4"></iframe>', | |
'<iframe style="background:transparent;" width="380" height="168" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://embed.pixiv.net/code.php?id=8959312_67555b8b3b15716a0f32134b64c84130"></iframe>' | |
]; | |
emblist = $.map(emblist, function(e,i) { return $(e); }); | |
setInterval(function() { | |
var src = emblist[Math.floor(Math.random()*emblist.length)]; | |
var content=$(".content"); | |
content.fadeOut(500, function() { | |
content.empty(); | |
content.append($("<div />").text(src.attr("src"))); | |
content.append($("<div />").append(src)); | |
content.fadeIn(1000); | |
}); | |
}, | |
5000 | |
); | |
}); | |
</script> | |
<div class="content"> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment