묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
오른쪽 마우스를 누르면 메뉴가 나오는거에 대한 질문입니다.(소스첨부)
2005.01.12 05:23
오른쪽 마우스를 누르면 메뉴는 나오기는 나오는데..
앞페이지로 이동과 뒤페이지로 이동이 안됩니다.
소스는
<script language="javascript">
<!--
var isie=0;
if(window.navigator.appName=="Microsoft Internet Explorer"&&window.navigator.appVersion.substring
(window.navigator.appVersion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf("MSIE")+8)>=5.5) {
isie=1;
}
else {
isie=0;
}
if(isie) {
var html="";
html+='<TABLE STYLE="border="0" WIDTH="140" HEIGHT="100" CELLPADDING="0" CELLSPACING="0">';
html+='<ST'+'YLE TYPE="text/css">n';
html+='a:link {text-decoration:none;font-family:돋움;font-size:9pt;}n';
html+='a:visited {text-decoration:none;font-family:돋움;font-size:9pt;}n';
html+='td {font-size:9pt;}n';
html+='</ST'+'YLE>n';
html+='<SC'+'RIPT LANGUAGE="JavaScript">n';
html+='n<'+'!--n';
html+='window.onerror=null;n';
html+='/'+' -'+'->n';
html+='</'+'SCRIPT>n';
html+='<TR><TD STYLE="border:0pt solid #FFFFFF" ID="i0" ONMOUSEOVER="document.all.i0.style.background='#eeeeee';document.all.i0.style.border='0pt solid #737B92';" ONMOUSEOUT="document.all.i0.style.background='';document.all.i0.style.border='0pt solid #999999';" ONCLICK="window.history.go(-1);"> 앞페이지로이동</TD></TR>';
html+='<TR><TD STYLE="border:0pt solid #FFFFFF" ID="i1" ONMOUSEOVER="document.all.i1.style.background='#eeeeee';document.all.i1.style.border='0pt solid #737B92';" ONMOUSEOUT="document.all.i1.style.background='';document.all.i0.style.border='0pt solid #999999';" ONCLICK="window.history.go(1);"> 뒷페이지로이동</TD></TR>';
html+='<TR><TD STYLE="border:0pt solid #FFFFFF" ID="i4" ONMOUSEOVER="document.all.i4.style.background='#eeeeee';document.all.i4.style.border='0pt solid #737B92';" ONMOUSEOUT="document.all.i4.style.background='';document.all.i0.style.border='0pt solid #999999';" ONCLICK="window.parent.external.AddFavorite(window.top.location.href,window.top.document.title);"> 즐겨찾기에등록...</TD></TR>';
html+='</TABLE>';
var oPopup = window.createPopup();
}
function dopopup(x,y) {
if(isie) {
var oPopupBody = oPopup.document.body;
oPopupBody.innerHTML = html;
oPopup.show(x, y, 140, 100, document.body);
}
}
function click(e) {
if(isie) {
if(document.all) {
if(event.button==2||event.button==3) {
dopopup(event.x-1,event.y-1);
}
}
}
}
if(isie) {
document.oncontextmenu = function() { dopopup(event.x,event.y);return false; }
document.onmousedown = click;
}
// -->
</script>입니다.
앞페이지로 이동과 뒤페이지로 이동이 안됩니다.
소스는
<script language="javascript">
<!--
var isie=0;
if(window.navigator.appName=="Microsoft Internet Explorer"&&window.navigator.appVersion.substring
(window.navigator.appVersion.indexOf("MSIE")+5,window.navigator.appVersion.indexOf("MSIE")+8)>=5.5) {
isie=1;
}
else {
isie=0;
}
if(isie) {
var html="";
html+='<TABLE STYLE="border="0" WIDTH="140" HEIGHT="100" CELLPADDING="0" CELLSPACING="0">';
html+='<ST'+'YLE TYPE="text/css">n';
html+='a:link {text-decoration:none;font-family:돋움;font-size:9pt;}n';
html+='a:visited {text-decoration:none;font-family:돋움;font-size:9pt;}n';
html+='td {font-size:9pt;}n';
html+='</ST'+'YLE>n';
html+='<SC'+'RIPT LANGUAGE="JavaScript">n';
html+='n<'+'!--n';
html+='window.onerror=null;n';
html+='/'+' -'+'->n';
html+='</'+'SCRIPT>n';
html+='<TR><TD STYLE="border:0pt solid #FFFFFF" ID="i0" ONMOUSEOVER="document.all.i0.style.background='#eeeeee';document.all.i0.style.border='0pt solid #737B92';" ONMOUSEOUT="document.all.i0.style.background='';document.all.i0.style.border='0pt solid #999999';" ONCLICK="window.history.go(-1);"> 앞페이지로이동</TD></TR>';
html+='<TR><TD STYLE="border:0pt solid #FFFFFF" ID="i1" ONMOUSEOVER="document.all.i1.style.background='#eeeeee';document.all.i1.style.border='0pt solid #737B92';" ONMOUSEOUT="document.all.i1.style.background='';document.all.i0.style.border='0pt solid #999999';" ONCLICK="window.history.go(1);"> 뒷페이지로이동</TD></TR>';
html+='<TR><TD STYLE="border:0pt solid #FFFFFF" ID="i4" ONMOUSEOVER="document.all.i4.style.background='#eeeeee';document.all.i4.style.border='0pt solid #737B92';" ONMOUSEOUT="document.all.i4.style.background='';document.all.i0.style.border='0pt solid #999999';" ONCLICK="window.parent.external.AddFavorite(window.top.location.href,window.top.document.title);"> 즐겨찾기에등록...</TD></TR>';
html+='</TABLE>';
var oPopup = window.createPopup();
}
function dopopup(x,y) {
if(isie) {
var oPopupBody = oPopup.document.body;
oPopupBody.innerHTML = html;
oPopup.show(x, y, 140, 100, document.body);
}
}
function click(e) {
if(isie) {
if(document.all) {
if(event.button==2||event.button==3) {
dopopup(event.x-1,event.y-1);
}
}
}
}
if(isie) {
document.oncontextmenu = function() { dopopup(event.x,event.y);return false; }
document.onmousedown = click;
}
// -->
</script>입니다.
history.go(1);