묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
[re] 깔끔한 새창띄우기를 하고 싶은데...이상해서요
2002.05.18 17:21
각 파일의 경로를 모르는 저로서는 답달기가 좀 애매하네요...
경로 설정이 제데로 되었다는 가정하에 보면 링크에 문제가 있는 것 같습니다.
onClick="openIT('movie_ohno_00.htm');" ← 이런 식으로 해주셨는데
onClick=" javascript:openIT();" ← 이렇게 수정해 주시기 바랍니다.
그럼 행복한 하루 되세요~ ^^*
>뭐가 잘 못 된건가요..ㅠ_ㅠ;;
>
><html>
><head>
><title></title>
><meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
><link rel="stylesheet" href="style.css">
><script language="javascript" type="text/javascript" SRC="js/pz_chromeless_2.1.js"></script>
><script>
>function openIT(acat) {
> //if(acat == "a"){
> theurl = acat;
> //theurl="sun1.htm"
> //}else{
> // theurl="sun3.htm"
> //}
> wname ="CHROMELESSWIN"
> W=550;
> H=405;
> windowCERRARa = "img/close_a.gif"
> windowCERRARd = "mg/close_d.gif"
> windowCERRARo = "mg/close_o.gif"
> //if(acat == "a"){
> windowTIT = "<font face=verdana size=1> FLASH ANIMATION -- OHNO & ZI</font>"
> //}else{
> // windowTIT = "<font face=verdana size=1> OHNO & ZI - no.1</font>"
> //}
> windowBORDERCOLOR = "#7FBEEF"
> windowBORDERCOLORsel = "#FFFFFF"
> windowTITBGCOLOR = "#6BA8D7"
> windowTITBGCOLORsel = "#FFFFFF"
> openchromeless(theurl, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowTIT, windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
>}
></script>
><script language="JavaScript">
><!--
>function MM_preloadImages() { //v3.0
> var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
> var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
> if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
>}
>
>function MM_swapImgRestore() { //v3.0
> var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
>}
>
>function MM_swapImage() { //v3.0
> var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
> if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
>}
>
>function MM_findObj(n, d) { //v4.0
> var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
> d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
> if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
> for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
> if(!x && document.getElementById) x=document.getElementById(n); return x;
>}
>//-->
></script>
>
></head>
>
>
><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/sub_ohno_icon01_o.gif','images/sub_ohno_icon02_o.gif','images/sub_ohno_icon03_o.gif','images/sub_ohno_icon04_o.gif','images/sub_ohno_icon05_o.gif')">
><div id="Layer5" style="position:absolute; left:197px; top:144px; width:500px; height:112px; z-index:5">
> <table width="520" border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td width="100">
> <div align="center"><a href="#" onclick="openIT('sun1.htm');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','images/potrfolio_01_04.jpg',1)"><img src="images/potrfolio_01_04.jpg" width="111" height="126" border="0" name="Image1"></a></div>
> </td>
> <td width="100">
> <div align="center"><a href="#" onClick="openIT('sun2.htm');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image21','','images/potrfolio_01_05.jpg',1)"><img src="images/potrfolio_01_05.jpg" width="114" height="126" border="0" name="Image21"></a></div>
> </td>
> <td width="100">
> <div align="center"><a href="#" onclick="openIT('+ '+ 'sun3.htm');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','images/potrfolio_01_06.jpg',1)"><img src="images/potrfolio_01_06.jpg" width="112" height="126" border="0" name="Image3"></a></div>
> </td>
> <td width="100">
> <div align="center"><a href="#" onclick="openIT('movie_ohno_02.htm');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','images/potrfolio_01_07.jpg',1)"><img src="images/potrfolio_01_07.jpg" width="113" height="126" border="0" name="Image4"></a></div>
> </td>
> <td width="100">
> <div align="center"><a href="#" onClick="openIT('movie_ohno_04.htm');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/potrfolio_01_08.jpg',1)"><img src="images/potrfolio_01_08.jpg" width="114" height="126" border="0" name="Image5"></a></div>
> </td>
> </tr>
> </table>
></div>
></body>
></html>
>
>
경로 설정이 제데로 되었다는 가정하에 보면 링크에 문제가 있는 것 같습니다.
onClick="openIT('movie_ohno_00.htm');" ← 이런 식으로 해주셨는데
onClick=" javascript:openIT();" ← 이렇게 수정해 주시기 바랍니다.
그럼 행복한 하루 되세요~ ^^*
>뭐가 잘 못 된건가요..ㅠ_ㅠ;;
>
><html>
><head>
><title></title>
><meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
><link rel="stylesheet" href="style.css">
><script language="javascript" type="text/javascript" SRC="js/pz_chromeless_2.1.js"></script>
><script>
>function openIT(acat) {
> //if(acat == "a"){
> theurl = acat;
> //theurl="sun1.htm"
> //}else{
> // theurl="sun3.htm"
> //}
> wname ="CHROMELESSWIN"
> W=550;
> H=405;
> windowCERRARa = "img/close_a.gif"
> windowCERRARd = "mg/close_d.gif"
> windowCERRARo = "mg/close_o.gif"
> //if(acat == "a"){
> windowTIT = "<font face=verdana size=1> FLASH ANIMATION -- OHNO & ZI</font>"
> //}else{
> // windowTIT = "<font face=verdana size=1> OHNO & ZI - no.1</font>"
> //}
> windowBORDERCOLOR = "#7FBEEF"
> windowBORDERCOLORsel = "#FFFFFF"
> windowTITBGCOLOR = "#6BA8D7"
> windowTITBGCOLORsel = "#FFFFFF"
> openchromeless(theurl, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowTIT, windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
>}
></script>
><script language="JavaScript">
><!--
>function MM_preloadImages() { //v3.0
> var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
> var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
> if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
>}
>
>function MM_swapImgRestore() { //v3.0
> var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
>}
>
>function MM_swapImage() { //v3.0
> var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
> if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
>}
>
>function MM_findObj(n, d) { //v4.0
> var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
> d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
> if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
> for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
> if(!x && document.getElementById) x=document.getElementById(n); return x;
>}
>//-->
></script>
>
></head>
>
>
><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/sub_ohno_icon01_o.gif','images/sub_ohno_icon02_o.gif','images/sub_ohno_icon03_o.gif','images/sub_ohno_icon04_o.gif','images/sub_ohno_icon05_o.gif')">
><div id="Layer5" style="position:absolute; left:197px; top:144px; width:500px; height:112px; z-index:5">
> <table width="520" border="0" cellspacing="0" cellpadding="0">
> <tr>
> <td width="100">
> <div align="center"><a href="#" onclick="openIT('sun1.htm');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','images/potrfolio_01_04.jpg',1)"><img src="images/potrfolio_01_04.jpg" width="111" height="126" border="0" name="Image1"></a></div>
> </td>
> <td width="100">
> <div align="center"><a href="#" onClick="openIT('sun2.htm');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image21','','images/potrfolio_01_05.jpg',1)"><img src="images/potrfolio_01_05.jpg" width="114" height="126" border="0" name="Image21"></a></div>
> </td>
> <td width="100">
> <div align="center"><a href="#" onclick="openIT('+ '+ 'sun3.htm');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','images/potrfolio_01_06.jpg',1)"><img src="images/potrfolio_01_06.jpg" width="112" height="126" border="0" name="Image3"></a></div>
> </td>
> <td width="100">
> <div align="center"><a href="#" onclick="openIT('movie_ohno_02.htm');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','images/potrfolio_01_07.jpg',1)"><img src="images/potrfolio_01_07.jpg" width="113" height="126" border="0" name="Image4"></a></div>
> </td>
> <td width="100">
> <div align="center"><a href="#" onClick="openIT('movie_ohno_04.htm');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/potrfolio_01_08.jpg',1)"><img src="images/potrfolio_01_08.jpg" width="114" height="126" border="0" name="Image5"></a></div>
> </td>
> </tr>
> </table>
></div>
></body>
></html>
>
>