Created
December 1, 2010 06:02
-
-
Save yusukebe/723046 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> | |
<title>Sasao Dayo!</title> | |
<script type="text/javascript" | |
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript" src="sasao.js"></script> | |
</head> | |
<body> | |
<h1>ささおココ押して!</h1> | |
<div id="risuco"></div> | |
</body> | |
</html> |
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
$().ready(function(){ | |
$(document.body).click(function () { | |
risuco(); | |
}); | |
}); | |
function risuco(){ | |
var img = $('<img/>').attr('src', | |
'http://a3.twimg.com/profile_images/1165332503/36061_101070173293502_100001715584302_6089_875556_n_normal.jpg'); | |
img.hide(); | |
img.css('float','left'); | |
$('#risuco').append(img); | |
img.fadeIn(2000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment