게시물에서 제목을 클릭해서 본문으로 들어갔을때..팝업띄우기..
고수님들 제가 많이 초짜라서...
제목처럼 원하는 게시물을 클릭해서 들어갔을때 팝업을 띄울려고 합니다.
여태 별의별짓을 다했는데...안되네요...
방법이 없을까요?
질문답변을 검색해봐요 .. 이런 질문답변은 없는거 같아 적습니다.
고수님들 많은 도움 부탁드립니다.
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 5개
헤더값(상단 내용)에
아래 예제처럼 해주세요
<script language="JavaScript">
<!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes' : 'no';
menubar_str = menubar ? 'yes' : 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
cookie_str = document.cookie;
cookie_str.toString();
pos_start = cookie_str.indexOf(name);
pos_end = cookie_str.indexOf('=', pos_start);
cookie_name = cookie_str.substring(pos_start, pos_end);
pos_start = cookie_str.indexOf(name);
pos_start = cookie_str.indexOf('=', pos_start);
pos_end = cookie_str.indexOf(';', pos_start);
if (pos_end <= 0) pos_end = cookie_str.length;
cookie_val = cookie_str.substring(pos_start + 1, pos_end);
if (cookie_name == name && cookie_val == "done")
return;
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
// -->
</script>
<body OnLoad="na_open_window('win', 'http://www.sir.co.kr/', 0, 0, 900, 600, 1, 1, 1, 1, 1);">
게시판 스킨를 바꿔서 팝업이 된다면 스킨를 수정 해야 하는 지 알 수 있어서요^^
미키손님 스크립트의
na_open_window('win', 'http://www.sir.co.kr/', 0, 0, 900, 600, 1, 1, 1, 1, 1);
를
// -->
</script>
이 위에 넣으세요.
그리고 글 작성할때 스크립트부분을 위에 넣고 글을 쓰세요.
html체크하고 <br> 자동변환 하지 마시구요.
팝업해제 되어 있는지 확인하시구요.