글 수 109
13
조회 수 : 10520 신고 : 0
미리보기 : |
---|
<head>와 </head> 사이나 <body>나 </body> 사이 어디네 넣든 상관은없습니다.
<!-- 새창을 열기위한 자바스크립트 ------------------------------------->
<script language="javascript">
function openwindow(name, url, width, height, scrollbar) {
scrollbar_str = scrollbar ? 'yes' : 'no';
window.open(url, name, 'width='+width+',height='+height+',scrolling='+scrollbar_str);
}
</script>
위에 소스를 삽입한후 클릭시 새창띄우게 될 곳에 아래 소스를 삽입합니다.
<a href="javascript:openwindow('news','news.php','550','600','yes');">클릭</a>
또다른방법
<a href="#" onclick="javascript:window.open('/member/member_account.asp','win','top=200,left=100,width=400,height=250,
menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0');">
이렇게 링크를 걸어주면 됩니다
onclick효과를 주는 것이니 input에도 써먹을 수 있겠고
점선 생기는 게 싫으면 a 나 input 태그 안에 onfocus=blur()을 써주시면 되겠죠
그럼 소스를 살펴봅시다
경로는 말그대로 주소이고
창이름은 프레임에서 타겟과 같습니다
location은 주소창 표시
directories는 연결 표시
resizable은 크기의 조절 가능
status는 아래에 로딩 표시되는 바
toolbar는 뒤로 앞으로 각종 폴더등 도구상자
menubar는 파일 편집.. 등 메뉴
scrollbars는 말그대로 스크롤바
width에는 창 가로크기 ,height엔 세로크기
top은 위에서 떨어진 정도, left는 왼쪽에서 떨어진 정도
또다른방법
<a href="#" onclick="javascript:window.open('/member/member_account.asp','win','top=200,left=100,width=400,height=250,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0');">
<!-- 새창을 열기위한 자바스크립트 ------------------------------------->
<script language="javascript">
function openwindow(name, url, width, height, scrollbar) {
scrollbar_str = scrollbar ? 'yes' : 'no';
window.open(url, name, 'width='+width+',height='+height+',scrolling='+scrollbar_str);
}
</script>
위에 소스를 삽입한후 클릭시 새창띄우게 될 곳에 아래 소스를 삽입합니다.
<a href="javascript:openwindow('news','news.php','550','600','yes');">클릭</a>
또다른방법
<a href="#" onclick="javascript:window.open('/member/member_account.asp','win','top=200,left=100,width=400,height=250,
menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0');">
이렇게 링크를 걸어주면 됩니다
onclick효과를 주는 것이니 input에도 써먹을 수 있겠고
점선 생기는 게 싫으면 a 나 input 태그 안에 onfocus=blur()을 써주시면 되겠죠
그럼 소스를 살펴봅시다
경로는 말그대로 주소이고
창이름은 프레임에서 타겟과 같습니다
location은 주소창 표시
directories는 연결 표시
resizable은 크기의 조절 가능
status는 아래에 로딩 표시되는 바
toolbar는 뒤로 앞으로 각종 폴더등 도구상자
menubar는 파일 편집.. 등 메뉴
scrollbars는 말그대로 스크롤바
width에는 창 가로크기 ,height엔 세로크기
top은 위에서 떨어진 정도, left는 왼쪽에서 떨어진 정도
또다른방법
<a href="#" onclick="javascript:window.open('/member/member_account.asp','win','top=200,left=100,width=400,height=250,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0');">
소중한 댓글 부탁드립니다.
추천수 10단위당 메달이 1개씩 노출되고, 추천수에 따라 배경색이 변하며, 일정수의 추천수를 받을시
아이콘이 붙게됩니다.
추천수 10단위당 메달이 1개씩 노출되고, 추천수에 따라 배경색이 변하며, 일정수의 추천수를 받을시
![BEST](/modules/board/skins/xe_webmini/img/common/icon_bestreply.gif)
추천수에 따른 배경색 보기
본문으로 바로가기
- 추천수 50개이상
- 추천수 30개이상
- 추천수 20개이상
- 추천수 10개이상
- 추천수 3개이상