Skip to content

Instantly share code, notes, and snippets.

@yusukebe
Created December 1, 2010 06:02
Show Gist options
  • Save yusukebe/723046 to your computer and use it in GitHub Desktop.
Save yusukebe/723046 to your computer and use it in GitHub Desktop.
<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>
$().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