Skip to content

Instantly share code, notes, and snippets.

@colmdoyle
Created December 23, 2010 16:39
Show Gist options
  • Save colmdoyle/753224 to your computer and use it in GitHub Desktop.
Save colmdoyle/753224 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Messing</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<style>
.profilepic{display: none;}
body{width: 100%; height: 100%;}
</style>
<?php
$picArray = array("0" => "colmdoyle", "1" => "orna", "2" => "colm", "3" => "brs", "4" => "colmdoyle", "5" => "orna", "6" => "colm", "7" => "brs", "8" => "colmdoyle", "9" => "orna");
$x = 0;
while($x < 10)
{
echo('<img class="profilepic" id="img-'.$x.'" src="https://graph.facebook.com/'.$picArray[$x].'/picture" width="100" height="100"/>');
$x++;
}
?>
<script>
window.setInterval(imageup, 100);
function imageup() {
$("img:hidden:first").fadeIn("fast");
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment