2013년 11월 17일 일요일

html 정중앙 한가운데 위치시키기

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- 중요 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- 중요 -->
<title>중앙</title>
<style>
body {
 background-image: url(apple.png);
 background-color: black;
 background-position: 50%;
 margin: 0;
 width: 100%;
 height: 100%;
}
</style>
</head>
<body>
<table style="height:100%;width:100%">
<tr>
<td align=center valign=middle height="100%" width="100%"> <!-- 따옴표 필수 -->
<table>
<tr>
<td>
중앙
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
중앙
중앙

로그인에 마우스 클릭하면 아이디 비밀번호 없어졌다가 다시 나타나기

Insert title here
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script>
function idFocus(){
 if(document.getElementById('id').value == '아이디')
  document.getElementById('id').value = '';
}
function idBlur(){
 if(document.getElementById('id').value == '')
  document.getElementById('id').value = '아이디';
}
function pwFocus(){
 if(document.getElementById('password').value == '비밀번호') {
  var original = document.getElementById('password');
  var copy = original.cloneNode(false);
  copy.type = 'password';
  copy.value = '';
  original.parentNode.replaceChild(copy, original);
  copy.focus();
  copy.select();
 }
}
function pwBlur(){
 if(document.getElementById('password').value == '') {
  var original = document.getElementById('password');
  var copy = original.cloneNode(false);
  copy.type = 'text';
  copy.value = '비밀번호';
  original.parentNode.replaceChild(copy, original);
 }
}
</script>
</head>
<body>
<table>
<tr>
<td>
<form method=post>
<input type=text value="아이디" name=id id=id onfocus=idFocus() onblur=idBlur()>
<input type=text value="비밀번호" name=password id=password onfocus=pwFocus() onblur=pwBlur()>
<input type=submit value="로그인">
</form>
</td>
</tr>
</table>
</body>
</html>

2013년 11월 5일 화요일

윈도우8.1용 에어로 스타트버튼 startisback

추천하는 이유는 윈도우8 모양에 에어로를 추가할 수도 있다는 점입니다.
제작자 홈페이지 : http://www.startisback.com/
윈도우8용 2.1.2 바로 다운로드 : http://www.startisback.com/StartIsBack_setup.exe
윈도우8.1용 1.0.4 바로 다운로드 : http://www.startisback.com/StartIsBackPlus_setup.exe