묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
이런이런.. 스크립트 오류인가봐요.. 좀 봐주세요 ㅠ.ㅠ
2002.12.09 16:51
일단 제가 신키님 홈에 있는 클리핑 이미지 소스를 넣을려고 하는 본문 HTML 의 헤드부분과 바디에서도 스크립트가 들어가는곳입니다.
<head>
<title>용산컴닷컴 ::::: </title>
<meta name="author" content="Pancake Technology">
<meta http-equiv="Content-Type" content="text/html; charset=Ks_c_5601-1987"><!--current language code : ko--><!--current codepage : 949 ( Ks_c_5601-1987) -->
<LINK REL="SHORTCUT ICON" href="/include/comcatalog.ico">
<link rel="stylesheet" type="text/css" href="/users/yongsancom/css/font_ko.css">
<!-- pagetitle : CATALOG FRONT PAGE -->
<script language="JavaScript" src="/script_js/pagescript.js"></script>
<style>
<!--
.text1 { font-size: 9pt; color: #333333; line-height: 150%; margin-left: 40; font-family: tahoma, verdana, Gulim; }
.text2 { font-size: 9pt; color: #333333; line-height: 150%; font-family:tahoma, verdana, Gulim; }
-->
</style>
<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img && img.altsrc) {
img.src = img.altsrc;
img.altsrc = null;
}
}
function na_preload_img()
{
var img_list = na_preload_img.arguments;
if (document.preloadlist == null)
document.preloadlist = new Array();
var top = document.preloadlist.length;
for (var i=0; i < img_list.length; i++) {
document.preloadlist[top+i] = new Image;
document.preloadlist[top+i].src = img_list[i+1];
}
}
function na_change_img_src(name, nsdoc, rpath, preload)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img) {
img.altsrc = img.src;
img.src = rpath;
}
}
// -->
</script>
</head>
<body onload="dynAnimation();na_preload_img(false, 'http://image.openstore.co.kr/users/yongsancom/image/mainsinkyu1-1.gif', 'http://image.openstore.co.kr/users/yongsancom/image/mainsinkyu2-1.gif', 'http://image.openstore.co.kr/users/yongsancom/image/mainsinkyu3-1.gif', 'http://image.openstore.co.kr/users/yongsancom/image/mainchuchun1-1.gif', 'http://image.openstore.co.kr/users/yongsancom/image/mainchuchun2-1.gif'+ '+ ', 'http://image.openstore.co.kr/users/yongsancom/image/mainchuchun3-1.gif');" topmargin="0" leftmargin="0" background="http://image.openstore.co.kr/users/yongsancom/image/backpattern.gif" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
<p style="line-height:150%; margin-top:0; margin-bottom:0;"> </p>
<div id="postitmessage" style="border-width:1px; border-style:none; width:0px; height:18px; position:absolute; left:0px; top:0px; z-index:1; filter:alpha(opacity=100);">
<p> </p>
</div>
<script language="JavaScript" src="/script_js/pagescript.js"></script>
<script language="JavaScript">
function menu(value) {
if (value==1) {frontpage();return;}
if (value==2) {productlist('0');return;}
if (value==3) {newspage();return;}
if (value==4) {bulletinboardpage();return;}
if (value==5) {supportpage();return;}
if (value==6) {faqspage();return;}
if (value==7) {contactuspage();return;}
if (value==8) {aboutuspage();return;}
if (value==9) {legalnoticepage();return;}
if (value==10) {memberinfopage();return;}
if (value==11) {orderhistory();return;}
if (value==12) {languageselect();return;}
if (value==13) {orderlist();return;}
if (value==14) {inquiryinfoinputpage();return;}
if (value==15) {openlogin();return;}
if (value==16) {openlogout();return;}
if (value==17) {searchpage();return;}
if (value==18) {openregister();return;}
if (value==20) {alertpage();return;}
}
function languageselect() {
openwin = window.open("","languageselect","width=400,height=200,toolbar=no");
openwin.location.href= "http://yongsancom.openstore.co.kr/selectlanguage.asp?catalogid=yongsancom&language=ko";
if(openwin.opener == null) openwin.opener = window;
openwin.opener.name = "opener"
}
function languagechange(value_languagecode) {
location.href= "http://yongsancom.openstore.co.kr/index.asp?catalogid=yongsancom&language=" + value_languagecode ;
}
function frontpage() { location.href = "http://yongsancom.openstore.co.kr/frontpage.asp?catalogid=yongsancom&language=ko"; }
function searchpage() { location.href = "http://yongsancom.openstore.co.kr/searchpage.asp?catalogid=yongsancom&language=ko"; }
function inquiryinfoinputpage() { location.href = "http://yongsancom.openstore.co.kr/inquirylist.asp?catalogid=yongsancom&language=ko"; }
function orderlist() {location.href = "http://yongsancom.openstore.co.kr/orderlist.asp?catalogid=yongsancom&language=ko";}
function registerpage()
{location.href = "http://yongsancom.openstore.co.kr/registerpage.asp?catalogid=yongsancom&language=ko";}
function memberinfopage()
{location.href = "http://yongsancom.openstore.co.kr/memberinfopage.asp?catalogid=yongsancom&language=ko";}
function orderhistory()
{location.href = "http://yongsancom.openstore.co.kr/ordercheckpage.asp?catalogid=yongsancom&language=ko";}
function orderhistory_order()
{location.href = "http://yongsancom.openstore.co.kr/ordercheckpage_1.asp?catalogid=yongsancom&language=ko&orderinquiry=order";}
function orderhistory_inquiry()
{location.href = "http://yongsancom.openstore.co.kr/ordercheckpage_1.asp?catalogid=yongsancom&language=ko&orderinquiry=inquiry";}
function contactuspage() {location.href = "http://yongsancom.openstore.co.kr/contactuspage.asp?catalogid=yongsancom&language=ko";}
function aboutuspage() {location.href = "http://yongsancom.openstore.co.kr/aboutuspage.asp?catalogid=yongsancom&language=ko";}
function bulletinboardpage() {location.href = "http://yongsancom.openstore.co.kr/board.asp?catalogid=yongsancom&boardcode=ko_defaultboard&language=ko";}
function newspage() {location.href = "http://yongsancom.openstore.co.kr/board.asp?catalogid=yongsancom&boardcode=ko_defaultnews&language=ko";}
function alertpage() {location.href = "http://yongsancom.openstore.co.kr/board.asp?catalogid=yongsancom&boardcode=ko_defaultalert&language=ko";}
function faqspage() {location.href = "http://yongsancom.openstore.co.kr/board.asp?catalogid=yongsancom&boardcode=ko_defaultfaqs&language=ko";}
function supportpage() {location.href = "http://yongsancom.openstore.co.kr/board.asp?catalogid=yongsancom&boardcode=ko_defaultsupport&language=ko";}
function legalnoticepage() {location.href = "http://yongsancom.openstore.co.kr/legalnoticepage.asp?catalogid=yongsancom&language=ko";}
function fileshareservice()
{location.href = "http://yongsancom.openstore.co.kr/filemanager.asp?catalogid=yongsancom&language=ko";}
function openlogin()
{location.href = "http://yongsancom.openstore.co.kr/login.asp?catalogid=yongsancom&language=ko";}
function openlogout()
{location.href = "http://yongsancom.openstore.co.kr/logout.asp?catalogid=yongsancom&language=ko";}
function openregister()
{location.href = "http://yongsancom.openstore.co.kr/registerpage.asp?catalogid=yongsancom&language=ko";}
function openlogin_lostid()
{location.href = "http://yongsancom.openstore.co.kr/login_lostid.asp?catalogid=yongsancom&language=ko";}
function openlogin_lostpassword()
{location.href = "http://yongsancom.openstore.co.kr/login_lostpassword.asp?catalogid=yongsancom&language=ko";}
function launchpad() {
openwin = window.open("","launchpad","width=287,height=178,toolbar=no");
openwin.location.href= "http://yongsancom.openstore.co.kr/launchpad.asp?catalogid=yongsancom&language=ko";
if(openwin.opener == null) openwin.opener = window;
openwin.opener.name = "opener"
}
function pagegenerater(value) {
location.href = "/pagegenerater.asp?catalogid=yongsancom&language=ko&pagecode=" + value
}
function pagegenerater_go(value, value2) {
location.href = "/pagegenerater.asp?catalogid=yongsancom&language=ko&pagecode=" + value + "#" + value2
}
function board(value) {
location.href = "/board.asp?catalogid=yongsancom&language=ko&boardcode=" + value
}
function productlist(value) {
if (value == null) {location.href = "/productlist.asp?catalogid=yongsancom&language=ko";}
else
{location.href = "/productlist.asp?catalogid=yongsancom&language=ko&treecode=" + value;}
}
function productlist_all()
{location.href = "/productlist_all.asp?catalogid=yongsancom&language=ko";}
function productlist_label(value1)
{location.href = "/productlist_label.asp?catalogid=yongsancom&language=ko&labelcode=" + value1;}
function wishlist()
{location.href = "http://yongsancom.openstore.co.kr/wishlist.asp?catalogid=yongsancom&language=ko";}
function minivote(form) { //투표하기
var result = "";
for(j=0;j<document.form_minivote.voteitem.length ;j++){
if (document.form_minivote.voteitem[j].checked==true) {result = document.form_minivote.voteitem[j].value;};
}
if (result == "") {return;}
else
{
openwin = window.open("","minivote","width=400,height=300,toolbar=no,scrollbars=yes,resizable=yes");
{ openwin.location.href= "/minivote.asp?catalogid=yongsancom&language=ko&vote=" + result;}
if(openwin.opener == null) openwin.opener = window;
openwin.opener.name = "opener"
}
}
function minivoteresult() { //투표결과보기
openwin = window.open("","minivote","width=400,height=300,toolbar=no,scrollbars=yes,resizable=yes");
{ openwin.location.href= "/minivote.asp?catalogid=yongsancom&language=ko";}
if(openwin.opener == null) openwin.opener = window;
openwin.opener.name = "opener"
}
</script><script language=JavaScript>
function searchformsend(form) {
if (form_searchform.searchkeyword.value=="") {
form_searchform.searchkeyword.focus() ;
return;
}
else{
form_searchform.submit();
}
}
</script>
<script language="JavaScript">
<!--
function bt(id,after)
{
eval(id+'.filters.blendTrans.stop();');
eval(id+'.filters.blendTrans.Apply();');
eval(id+'.src="'+after+'";');
eval(id+'.filters.blendTrans.Play();');
}
//-->
</script>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
요기까지이구요
그리고 제가 클리핑 소스를 넣어야 할것이
<script defer language="javascript">
<!--
var block = sldarea.style;
var tmrSlider;
function slideleft()
{
if (block.xpos >= -565) { block.xpos -= 1; block.left = block.xpos; }
if (block.xpos < -565) { block.xpos = 0; block.left = block.xpos; }
tmrSlider = setTimeout("slideleft()", 1);
}
cliparea.onmouseover = function() { clearTimeout(tmrSlider); }
cliparea.onmouseout = function() { slideleft(); }
block.xpos = parseInt(block.left)
slideleft();
-->
</script>
이거입니다. 근데 신키님홈에선 이걸 헤드와 헤드 사이에 넣어달라고 하는데
제가 헤드와 헤드사이에 넣으면
var block = sldarea.style;
이부분에서 에러가 있다고 나오네요.. 아무래도 스크립트 끼리 겹친거 같은데 고수님들 뭐가 문제인지 한번 봐주세요
저로썬 아무것도 모르겠네요 ㅠ.ㅠ
<head>
<title>용산컴닷컴 ::::: </title>
<meta name="author" content="Pancake Technology">
<meta http-equiv="Content-Type" content="text/html; charset=Ks_c_5601-1987"><!--current language code : ko--><!--current codepage : 949 ( Ks_c_5601-1987) -->
<LINK REL="SHORTCUT ICON" href="/include/comcatalog.ico">
<link rel="stylesheet" type="text/css" href="/users/yongsancom/css/font_ko.css">
<!-- pagetitle : CATALOG FRONT PAGE -->
<script language="JavaScript" src="/script_js/pagescript.js"></script>
<style>
<!--
.text1 { font-size: 9pt; color: #333333; line-height: 150%; margin-left: 40; font-family: tahoma, verdana, Gulim; }
.text2 { font-size: 9pt; color: #333333; line-height: 150%; font-family:tahoma, verdana, Gulim; }
-->
</style>
<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img && img.altsrc) {
img.src = img.altsrc;
img.altsrc = null;
}
}
function na_preload_img()
{
var img_list = na_preload_img.arguments;
if (document.preloadlist == null)
document.preloadlist = new Array();
var top = document.preloadlist.length;
for (var i=0; i < img_list.length; i++) {
document.preloadlist[top+i] = new Image;
document.preloadlist[top+i].src = img_list[i+1];
}
}
function na_change_img_src(name, nsdoc, rpath, preload)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img) {
img.altsrc = img.src;
img.src = rpath;
}
}
// -->
</script>
</head>
<body onload="dynAnimation();na_preload_img(false, 'http://image.openstore.co.kr/users/yongsancom/image/mainsinkyu1-1.gif', 'http://image.openstore.co.kr/users/yongsancom/image/mainsinkyu2-1.gif', 'http://image.openstore.co.kr/users/yongsancom/image/mainsinkyu3-1.gif', 'http://image.openstore.co.kr/users/yongsancom/image/mainchuchun1-1.gif', 'http://image.openstore.co.kr/users/yongsancom/image/mainchuchun2-1.gif'+ '+ ', 'http://image.openstore.co.kr/users/yongsancom/image/mainchuchun3-1.gif');" topmargin="0" leftmargin="0" background="http://image.openstore.co.kr/users/yongsancom/image/backpattern.gif" oncontextmenu="return false" ondragstart="return false" onselectstart="return false">
<p style="line-height:150%; margin-top:0; margin-bottom:0;"> </p>
<div id="postitmessage" style="border-width:1px; border-style:none; width:0px; height:18px; position:absolute; left:0px; top:0px; z-index:1; filter:alpha(opacity=100);">
<p> </p>
</div>
<script language="JavaScript" src="/script_js/pagescript.js"></script>
<script language="JavaScript">
function menu(value) {
if (value==1) {frontpage();return;}
if (value==2) {productlist('0');return;}
if (value==3) {newspage();return;}
if (value==4) {bulletinboardpage();return;}
if (value==5) {supportpage();return;}
if (value==6) {faqspage();return;}
if (value==7) {contactuspage();return;}
if (value==8) {aboutuspage();return;}
if (value==9) {legalnoticepage();return;}
if (value==10) {memberinfopage();return;}
if (value==11) {orderhistory();return;}
if (value==12) {languageselect();return;}
if (value==13) {orderlist();return;}
if (value==14) {inquiryinfoinputpage();return;}
if (value==15) {openlogin();return;}
if (value==16) {openlogout();return;}
if (value==17) {searchpage();return;}
if (value==18) {openregister();return;}
if (value==20) {alertpage();return;}
}
function languageselect() {
openwin = window.open("","languageselect","width=400,height=200,toolbar=no");
openwin.location.href= "http://yongsancom.openstore.co.kr/selectlanguage.asp?catalogid=yongsancom&language=ko";
if(openwin.opener == null) openwin.opener = window;
openwin.opener.name = "opener"
}
function languagechange(value_languagecode) {
location.href= "http://yongsancom.openstore.co.kr/index.asp?catalogid=yongsancom&language=" + value_languagecode ;
}
function frontpage() { location.href = "http://yongsancom.openstore.co.kr/frontpage.asp?catalogid=yongsancom&language=ko"; }
function searchpage() { location.href = "http://yongsancom.openstore.co.kr/searchpage.asp?catalogid=yongsancom&language=ko"; }
function inquiryinfoinputpage() { location.href = "http://yongsancom.openstore.co.kr/inquirylist.asp?catalogid=yongsancom&language=ko"; }
function orderlist() {location.href = "http://yongsancom.openstore.co.kr/orderlist.asp?catalogid=yongsancom&language=ko";}
function registerpage()
{location.href = "http://yongsancom.openstore.co.kr/registerpage.asp?catalogid=yongsancom&language=ko";}
function memberinfopage()
{location.href = "http://yongsancom.openstore.co.kr/memberinfopage.asp?catalogid=yongsancom&language=ko";}
function orderhistory()
{location.href = "http://yongsancom.openstore.co.kr/ordercheckpage.asp?catalogid=yongsancom&language=ko";}
function orderhistory_order()
{location.href = "http://yongsancom.openstore.co.kr/ordercheckpage_1.asp?catalogid=yongsancom&language=ko&orderinquiry=order";}
function orderhistory_inquiry()
{location.href = "http://yongsancom.openstore.co.kr/ordercheckpage_1.asp?catalogid=yongsancom&language=ko&orderinquiry=inquiry";}
function contactuspage() {location.href = "http://yongsancom.openstore.co.kr/contactuspage.asp?catalogid=yongsancom&language=ko";}
function aboutuspage() {location.href = "http://yongsancom.openstore.co.kr/aboutuspage.asp?catalogid=yongsancom&language=ko";}
function bulletinboardpage() {location.href = "http://yongsancom.openstore.co.kr/board.asp?catalogid=yongsancom&boardcode=ko_defaultboard&language=ko";}
function newspage() {location.href = "http://yongsancom.openstore.co.kr/board.asp?catalogid=yongsancom&boardcode=ko_defaultnews&language=ko";}
function alertpage() {location.href = "http://yongsancom.openstore.co.kr/board.asp?catalogid=yongsancom&boardcode=ko_defaultalert&language=ko";}
function faqspage() {location.href = "http://yongsancom.openstore.co.kr/board.asp?catalogid=yongsancom&boardcode=ko_defaultfaqs&language=ko";}
function supportpage() {location.href = "http://yongsancom.openstore.co.kr/board.asp?catalogid=yongsancom&boardcode=ko_defaultsupport&language=ko";}
function legalnoticepage() {location.href = "http://yongsancom.openstore.co.kr/legalnoticepage.asp?catalogid=yongsancom&language=ko";}
function fileshareservice()
{location.href = "http://yongsancom.openstore.co.kr/filemanager.asp?catalogid=yongsancom&language=ko";}
function openlogin()
{location.href = "http://yongsancom.openstore.co.kr/login.asp?catalogid=yongsancom&language=ko";}
function openlogout()
{location.href = "http://yongsancom.openstore.co.kr/logout.asp?catalogid=yongsancom&language=ko";}
function openregister()
{location.href = "http://yongsancom.openstore.co.kr/registerpage.asp?catalogid=yongsancom&language=ko";}
function openlogin_lostid()
{location.href = "http://yongsancom.openstore.co.kr/login_lostid.asp?catalogid=yongsancom&language=ko";}
function openlogin_lostpassword()
{location.href = "http://yongsancom.openstore.co.kr/login_lostpassword.asp?catalogid=yongsancom&language=ko";}
function launchpad() {
openwin = window.open("","launchpad","width=287,height=178,toolbar=no");
openwin.location.href= "http://yongsancom.openstore.co.kr/launchpad.asp?catalogid=yongsancom&language=ko";
if(openwin.opener == null) openwin.opener = window;
openwin.opener.name = "opener"
}
function pagegenerater(value) {
location.href = "/pagegenerater.asp?catalogid=yongsancom&language=ko&pagecode=" + value
}
function pagegenerater_go(value, value2) {
location.href = "/pagegenerater.asp?catalogid=yongsancom&language=ko&pagecode=" + value + "#" + value2
}
function board(value) {
location.href = "/board.asp?catalogid=yongsancom&language=ko&boardcode=" + value
}
function productlist(value) {
if (value == null) {location.href = "/productlist.asp?catalogid=yongsancom&language=ko";}
else
{location.href = "/productlist.asp?catalogid=yongsancom&language=ko&treecode=" + value;}
}
function productlist_all()
{location.href = "/productlist_all.asp?catalogid=yongsancom&language=ko";}
function productlist_label(value1)
{location.href = "/productlist_label.asp?catalogid=yongsancom&language=ko&labelcode=" + value1;}
function wishlist()
{location.href = "http://yongsancom.openstore.co.kr/wishlist.asp?catalogid=yongsancom&language=ko";}
function minivote(form) { //투표하기
var result = "";
for(j=0;j<document.form_minivote.voteitem.length ;j++){
if (document.form_minivote.voteitem[j].checked==true) {result = document.form_minivote.voteitem[j].value;};
}
if (result == "") {return;}
else
{
openwin = window.open("","minivote","width=400,height=300,toolbar=no,scrollbars=yes,resizable=yes");
{ openwin.location.href= "/minivote.asp?catalogid=yongsancom&language=ko&vote=" + result;}
if(openwin.opener == null) openwin.opener = window;
openwin.opener.name = "opener"
}
}
function minivoteresult() { //투표결과보기
openwin = window.open("","minivote","width=400,height=300,toolbar=no,scrollbars=yes,resizable=yes");
{ openwin.location.href= "/minivote.asp?catalogid=yongsancom&language=ko";}
if(openwin.opener == null) openwin.opener = window;
openwin.opener.name = "opener"
}
</script><script language=JavaScript>
function searchformsend(form) {
if (form_searchform.searchkeyword.value=="") {
form_searchform.searchkeyword.focus() ;
return;
}
else{
form_searchform.submit();
}
}
</script>
<script language="JavaScript">
<!--
function bt(id,after)
{
eval(id+'.filters.blendTrans.stop();');
eval(id+'.filters.blendTrans.Apply();');
eval(id+'.src="'+after+'";');
eval(id+'.filters.blendTrans.Play();');
}
//-->
</script>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
요기까지이구요
그리고 제가 클리핑 소스를 넣어야 할것이
<script defer language="javascript">
<!--
var block = sldarea.style;
var tmrSlider;
function slideleft()
{
if (block.xpos >= -565) { block.xpos -= 1; block.left = block.xpos; }
if (block.xpos < -565) { block.xpos = 0; block.left = block.xpos; }
tmrSlider = setTimeout("slideleft()", 1);
}
cliparea.onmouseover = function() { clearTimeout(tmrSlider); }
cliparea.onmouseout = function() { slideleft(); }
block.xpos = parseInt(block.left)
slideleft();
-->
</script>
이거입니다. 근데 신키님홈에선 이걸 헤드와 헤드 사이에 넣어달라고 하는데
제가 헤드와 헤드사이에 넣으면
var block = sldarea.style;
이부분에서 에러가 있다고 나오네요.. 아무래도 스크립트 끼리 겹친거 같은데 고수님들 뭐가 문제인지 한번 봐주세요
저로썬 아무것도 모르겠네요 ㅠ.ㅠ