Skip to content

Instantly share code, notes, and snippets.

@likr
Last active December 23, 2015 23:29
Show Gist options
  • Save likr/6710389 to your computer and use it in GitHub Desktop.
Save likr/6710389 to your computer and use it in GitHub Desktop.
<html>
<link rel="stylesheet" href="bgstretcher.css" />
<script type="text/javascript" src="jquery-1.6.1.js"></script>
<script type="text/javascript" src="bgstretcher.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var iter = 0;
var images = ['images/白い画像.jpg', 'images/sample-2.jpg'];
$('BODY').bgStretcher({
images: images, imageWidth: 1024, imageHeight: 768,
slideShowSpeed: 1000,
sequenceMode: 'normal',
callbackfunction: function () {
if (++iter == images.length - 1) {
$('body').bgStretcher.pause();
}
}
});
});
</script>
</head>
<body>
テキスト(省略)
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment