디자인

[플래시 팝업]플래시에서 새창 띄우기 자바스크립트

bigwav 2008. 12. 13. 11:19

[방법 1]
플래시 버튼에

on (press) {
getURL ("javascript:cc()");
}

플래시가 들어있는 문서의 <head></head> 사이에 아래 자바스크립트를 넣어줍니다.

<SCRIPT language=javascript>
function cc(){
url = "/catalogue01.html" ;
window.open(url,'','toolbar=no,menubar=no,location=no,directions=no, scrollbars=ㅛyes,status=yes,width=770,height=1100');
}
</SCRIPT>

[방법 2]
플래시 버튼에

on(release){
 getURL("javascript:void(window.open('sell01.html', 'NewWindow1', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scroll=no,resizable=no,copyhistory=no,width=700,height=525,'))")
}