폼을 동기화해주는 스크립트


<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<title>폼을 동기화시키는 스크립트</title>

<script language="javascript" type="text/javascript">

var name = "";

var email = false;

function InitValue(frm){

name = frm.txtName.value;

email = frm.chkmail.checked;

}

function ShipToBill(frm){

if(frm.copy.checked){

InitValue(frm); //현재 텍스트박스와 체크박스의 상태유지

document.getElementById("txtDeliveryName").value = document.getElementById("txtName").value;

frm.chkDeliveryEmail.checked = email;

}else{ //체크박스를 해제한다면

frm.txtDeliveryName.value=name;

frm.chkDeliveryEmail.checked = email; //폼객체 활용

}

</script>

</head>

<body>

<form id="MyForm" action="" method="post">

주문자 정보<br/>

이름 : <input type="text" id="txtName" /><br />

<input type="checkbox" id="chkmail" name="chkmail"/> 배송정보를 메일로 받음


<hr />

<input type="checkbox" id="copy" onclick="ShipToBill(this.form);"/>주문자 정보와 배송지 정보가 같음

<hr />


배송지 정보<br/>

이름 : <input type="text" id="txtDeliveryName" /><br />

<input type="checkbox" id="chkDeliveryEmail" name="chkDeliveryEmail"/> 배송정보를 메일로 받음

</form>

</body>

</html>


'Programming > Javascript' 카테고리의 다른 글

복사 방지, 소스보기 막는 소스  (0) 2013.01.23
체크박스 전체선택 전체 해제  (0) 2013.01.23
웹브라우저 관련 예제들  (0) 2013.01.22
자바스크립트 내장 객체  (0) 2013.01.04
스타일객체  (0) 2013.01.03
 

웹브라우저 관련 예제들

Programming/Javascript | 2013. 1. 22. 00:46
Posted by 오요미

즐겨찾기 구성하기


<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<hr>

<input type="button" value="즐겨찾기 내보내기" onclick="window.external.ImportExportFavorites(false, '');">

<hr>

<input type="button" value="즐겨찾기 가져오기" onclick="window.external.ImportExportFavorites(true, '');">

<hr>

<input type="button" value="즐겨찾기 추가하기" 

onclick="window.external.AddFavorite('http://www.dotnetkorea.com/', '닷넷코리아');">

<hr>


인쇄창 띄우기


<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<title>Insert title here</title>

</head>

<body>

<a href = "#" onclick="if(window.print){window.print();}">

현재 페이지를 인쇄하시겠습니까?

</a>

</body>

</html>


시작페이지로 설정


<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<title>Insert title here</title>

</head>

<body>

<a href="#" onclick="this.style.behavior='url(#default#homepage)';

this.setHomePage('http://www.dotnetkorea.com/');">

이 홈페이지를 시작 페이지로 설정하시겠습니까?

</a>

</body>

</html>


'Programming > Javascript' 카테고리의 다른 글

체크박스 전체선택 전체 해제  (0) 2013.01.23
주문자와 배송지 정보 같게 설정하는 checkbox  (0) 2013.01.22
자바스크립트 내장 객체  (0) 2013.01.04
스타일객체  (0) 2013.01.03
onload이벤트  (0) 2013.01.01
 

SecureCRT 단축키

Programming/기타 | 2013. 1. 17. 15:32
Posted by 오요미

·   CTRL+TAB takes you through multiple SecureCRT session tabs.
·   CTRL+SHIFT+TAB cycles backwards through the sessions.
·   CTRL+F4 closes the active tab.
·   ALT+1 (2, 3, 4, 5, 6, 7, 8, 9, & 0) allows you to jump directly to one of the first ten tabs.
·   ALT+B opens the Connect in Tab dialog.
·   ALT+C opens the Connect dialog.
·   ALT+G switches the focus between the chat window and the active session.
·   ALT+P opens an SFTP tab using the active tab's session.
·   ALT+Q opens the Quick Connect dialog.

Within the chat window, CTRL+SHIFT+TAB switches the focus to the active session

'Programming > 기타' 카테고리의 다른 글

프록시 서버  (0) 2013.05.07
통합인증(SSO)  (0) 2013.05.07
editplus 일반 & 구문강조 설정  (0) 2013.02.12
window7 단축키  (0) 2012.12.19
edit plus 단축키  (0) 2012.12.13
 
블로그 이미지

오요미

공부할 수 있는 순간을 감사하며 공부하라.

카테고리

분류 전체보기 (121)
Electronics (1)
Programming (72)
Culturallife (30)
English (11)
취업 (1)
대학원 (4)
Life (1)