|
웹디자인,포토샵,그누보드,제로보드,동영상제작 관련 메모 >>
플래시에서 새창 가운데 열기 |
2009-03-03 15:05:02 |
|
 |
홈페이지
|
|
|
<script language='JavaScript'> <!-- function enter_site() { mywidth = 1100; //새창가로크기 myheight = 650;//새창세로크기 myleft = (screen.width - mywidth) / 2; mytop = (screen.height - myheight) / 2; window.open('새창주소', '새창네임', 'width='+mywidth+',height='+myheight+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left='+myleft+',top='+mytop); } //--> </script> 플래시 버튼의 액션창에 삽입 on (release) { getURL ("javaScript:enter_site()"); } 버튼과 새창으로 열 페이지가 여러개라면,, 똑같은 함수를 만들고 function enter_site1() { 속성 } function enter_site2() { 속성 } enter_site의 이름을 바꿔주고 버튼의 액션창에 각각 enter_site의 이름을 넣어준다. 새창이 아닌 일반 링크 걸때 function enter_site2() { window.open('링크주소','_self'); }
|
|
|
|
|
|
|
|
|
|
|