読者です 読者をやめる 読者になる 読者になる

美人時計作った!!

けど,途中であきたので公開

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<title>美人時計</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
</body>
<script type="text/javascript">
(function(){
    this.setBijin = function(){
	var date = new Date();
	var hours = date.getHours();
	var minutes = date.getMinutes();
	if( hours < 10 ) hours = '0' + hours;
	if( minutes < 10 ) minutes = '0' + minutes;
	document.body.innerHTML=
	    '<img src="' + 'http://www.bijint.com/jp/img/photo/' + hours + minutes + '.jpg" alt="'
	    + hours +':'+ minutes + '" />';
	setTimeout('setBijin()',60000 - date.getSeconds() * 1000);
    };
    setBijin();
})();
</script>
</html>