아무리 찾아봐도 없네요..
이런 소스 가지고 계신분 답글 부탁드립니다.
아주 간절하게 찾고 있습니다.
버튼을 클릭하면 링크된사이트로 넘어가고 윈도우창이 하나 더 뜨게 하고 싶습니다.
그런데 그 윈도우창을 넘어간 페이지가 아닌 현재페이지에서 조정할수 있어야합니다.
아래 소스처럼 온클릭시 윈도우창도 뜨면서 링크걸린 페이지로 넘어가게끔 하고 싶습니다.
<HTML>
<HEAD>
<TITLE>링크를 클릭해서 띄우는 공지창(?).-작은 윈도우창 </TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- //
var win = null;
function newWindow(mypage,myname,w,h,features) {
var winl = (screen.width-w)/2;
var wint = (screen.height-h)/2;
if (winl < 0) winl = 0;
if (wint < 0) wint = 0;
var settings = 'height=' + h + ',';
settings += 'width=' + w + ',';
settings += 'top=' + wint + ',';
settings += 'left=' + winl + ',';
settings += features;
win = window.open(mypage,myname,settings);
win.window.focus();
}
// -->
</script>
</HEAD>
<BODY>
<H4>
<a href="#null" onClick="newWindow('http://gif00.com.ne.kr/ex/1.html','','300','500','resizable=no,scrollbars=no,status=no,toolbar=no')">견본.1</a> <P>
<a href="#null" onClick="newWindow('http://gif00.com.ne.kr/ex/2.html','','300','450','resizable,scrollbars,status,toolbar')">
견본.2</a> <P>
<a href="#null" onClick="newWindow('http://gif00.com.ne.kr/ex/3.html','','450','250','resizable=no,scrollbars=no,status=no,toolbar=no')">
견본.3</a> <P>
<a href="#null" onClick="newWindow('http://gif00.com.ne.kr/ex/4.html','','400','400','resizable,scrollbars,status,toolbar')" "newWindow('http://gif00.com.ne.kr/ex/3.html','','450','250','resizable=no,scrollbars=no,status=no,toolbar=no')">
견본.4</a>
</h4>
<!--
주소,가로넓이,세로높이,창넓이조작,스크롤바,스타트창,툴바
-->
</BODY>
</HTML>