상세페이지 코드가 너무길어 좀 줄여볼까합니다.

상세페이지 코드가 너무길어 좀 줄여볼까합니다.

QA

상세페이지 코드가 너무길어 좀 줄여볼까합니다.

본문

다음과 같은 상세페이지 소스가 있습니다.

onclick 소스안에 똑같은 명령어가 계속들어가서 툴바,로케이션,스태이터스,메뉴바 기타등등

페이지가 너무 길어 지고 있습니다.

 

이부분이 CSS로 되어있다면 <script>로 CSS 적고 간단하게 줄여 볼 수 있겠는데..

onclick 명령어로 되어 있스니까 어떻게 소스를 좀 줄여야 할지 방법을 모르겠습니다.

 

아래코드를 좀더요약해서 적을 수 있는 방안이 궁금합니다.

 

최대한 줄여주신 분께 채택을 남겨드리겠습니다.

감사합니다.^^

 

<div style="width:100%" id="hdivDescription">

 

 

<a onclick="window.open ('http://wagonkorea.speedgabia.com/jericox/all/2034_2035.html','cong_window' , 'toolbar=0, location=0, status=0, menubar=0, scrollbars=1, resizable=no, top=50, left=20, width=750, height=2565');return false" onfocus="this.blur()" href="#">

<img onmouseover="this.src='http://wagonkorea.speedgabia.com/jericox/all/2034_2035_over.jpg'" onmouseout="this.src='http://wagonkorea.speedgabia.com/jericox/all/2034_2035_list.jpg'" src="http://wagonkorea.speedgabia.com/jericox/all/2034_2035_list.jpg" border="0"></a><br><br>

 

 


<a onclick="window.open ('http://wagonkorea.speedgabia.com/jericox/all/2036.html','cong_window' , 'toolbar=0, location=0, status=0, menubar=0, scrollbars=1, resizable=no, top=50, left=20, width=750, height=2565');return false" onfocus="this.blur()" href="#">

<img onmouseover="this.src='http://wagonkorea.speedgabia.com/jericox/all/2036_over.jpg'" onmouseout="this.src='http://wagonkorea.speedgabia.com/jericox/all/2036_list.jpg'" src="http://wagonkorea.speedgabia.com/jericox/all/2036_list.jpg" border="0"></a><br><br>

 

 


<a onclick="window.open ('http://wagonkorea.speedgabia.com/jericox/all/2039.html','cong_window' , 'toolbar=0, location=0, status=0, menubar=0, scrollbars=1, resizable=no, top=50, left=20, width=750, height=2565');return false" onfocus="this.blur()" href="#">

<img onmouseover="this.src='http://wagonkorea.speedgabia.com/jericox/all/2039_over.jpg'" onmouseout="this.src='http://wagonkorea.speedgabia.com/jericox/all/2039_list.jpg'" src="http://wagonkorea.speedgabia.com/jericox/all/2039_list.jpg" border="0"></a><br><br>

 

 


<a onclick="window.open ('http://wagonkorea.speedgabia.com/jericox/all/2040.html','cong_window' , 'toolbar=0, location=0, status=0, menubar=0, scrollbars=1, resizable=no, top=50, left=20, width=750, height=2565');return false" onfocus="this.blur()" href="#">

<img onmouseover="this.src='http://wagonkorea.speedgabia.com/jericox/all/2040_over.jpg'" onmouseout="this.src='http://wagonkorea.speedgabia.com/jericox/all/2040_list.jpg'" src="http://wagonkorea.speedgabia.com/jericox/all/2040_list.jpg" border="0"></a><br><br>

 

 

.

.

밑으로 쭈욱 내려가는 상세페이지

.

.


<img src="http://wagonkorea.speedgabia.com/jericox/all/callcenter.jpg"><br>

 

</div>

이 질문에 댓글 쓰기 :

답변 1

뭐 간단하게 함수하나 쓰면될것같습니다


<a onclick="popup('2040.html');void(0);" onfocus="this.blur()" href="#">
<script>
function popup(url_code){
 window.open('http://wagonkorea.speedgabia.com/jericox/all/'+url_code,'jerico','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=no,top=50,left=20,width=750, height=2565');
}
</script>

 

그리고 하나 더 말씀드리자면 해당 홈페이지의 url은 한곳에 PHP변수로 담아서 활용하시면 더욱 줄어들수있겠네요

답변을 작성하시기 전에 로그인 해주세요.
전체 68
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT