배너관리 스킨중에서 새창열리지 않게 하려면?? 정보
배너관리 스킨중에서 새창열리지 않게 하려면??본문
홈페이지를 만들었는데요..
배너관리 스킨을 다운 받아서 설치를 했습니다.
그런데..배너 클릭시 _self 였으면 좋겠는데..
새창이 계속 열리네요..
아무래도 아래 소스 같은데 어떻게 수정해야 할까요??
조언 부탁드립니다.
} else {
//일반 이미지 파일일경우
$banner_tag = "<a href='{$list['0']['link_href']['1']}' title='{$list['0']['subject']}' onclick='window.open(this.href); return false'><img src='{$list['0']['file']['0']['path']}/{$list['0']['file']['0']['file']}' width='{$list[0][ca_name]}'/></a>";
}
배너관리 스킨을 다운 받아서 설치를 했습니다.
그런데..배너 클릭시 _self 였으면 좋겠는데..
새창이 계속 열리네요..
아무래도 아래 소스 같은데 어떻게 수정해야 할까요??
조언 부탁드립니다.
} else {
//일반 이미지 파일일경우
$banner_tag = "<a href='{$list['0']['link_href']['1']}' title='{$list['0']['subject']}' onclick='window.open(this.href); return false'><img src='{$list['0']['file']['0']['path']}/{$list['0']['file']['0']['file']}' width='{$list[0][ca_name]}'/></a>";
}
댓글 전체
자바스크립트로 링크를 열도록 되있군요! 자바스크립트부분에서 평션이 window.open 인걸 찾아서 올려주시면 확인해볼께요^^
해당 스킨 파일의 전체 소스입니다..
말씀 하시는 부분이 어딘지 모르겠습니다.
스킨에는 별도의 자바스크립트 파일은 없는데..
<?
if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
/*
* 2011-03-02
* g4m.kr 랜덤 배너스킨
* demo : http://www.g4m.kr/sample/
* g4m_banner(스킨디렉토리, 게시판테이블, 개수, 제목길이, 배너분류선택, 배너분류선택값)
* 기본값은 최신글과 사용법이 같습니다.
* 게시판에 제목, 내용(내용무관), 링크 #1, 첨부파일 #1 이용합니다. 이미지 및 플래시 배너 등록 가능.
* - 예제 -
* 배너선택1 : 분류, 또는 게시판 wr_id 값을
* 배너선택2 : 선택1에 따라 분류명을 넣거나 , 로 구분해서 게시판 wr_id 값을 넣음
* - 분류 사용시 분류를 대상으로 뽑기
* $banner_type = "cate";
* $banner_val = "분류A";
* echo g4m_banner('g4m_banner', "test_banner", 10,$banner_type,$banner_val);
* - 게시물 wr_id 기준으로 뽑기
* $banner_type = "wr_id";
* $banner_val = "2,3,4,10,33";// , 로 구분할것
* echo g4m_banner('g4m_banner', "test_banner", 10,$banner_type,$banner_val);
* - 최근 5개만 뽑기
* echo g4m_banner('g4m_banner', "test_banner", 5);
*/
?>
<!-- g4m_banner -->
<div class='latest_area'>
<?
shuffle($list);
if ($list['0']['file']['count'] > 0) {
if ($list['0']['file']['0']['image_type'] == '13') {
//flash 파일일 경우
$swf_file = $list['0']['file']['0']['path'] . "/" . $list['0']['file']['0']['file'];
$banner_tag = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='{$list[0][ca_name]}' height='{$list['0']['file']['0']['image_height']}'>
<param name='movie' value='{$swf_file}'>
<param name='quality' value='high'>
<param name='wmode' value='transparent'/>
<param name='allowScriptAccess' value='always'>
<embed src='{$swf_file}' quality=high width='{$list[0][ca_name]}' height='{$list['0']['file']['0']['image_height']}' type='application/x-shockwave-flash' pluginspace='http://www.adobe.com/go/getflashplayer' allowScriptAccess='always'></embed>
</object>";
} else {
//일반 이미지 파일일경우
$banner_tag = "<a href='{$list['0']['link_href']['1']}' title='{$list['0']['subject']}' onclick='window.open(this.href); return false'><img src='{$list['0']['file']['0']['path']}/{$list['0']['file']['0']['file']}' width='{$list[0][ca_name]}'/></a>";
}
echo $banner_tag;
}
?>
</div>
<!-- //g4m_banner -->
말씀 하시는 부분이 어딘지 모르겠습니다.
스킨에는 별도의 자바스크립트 파일은 없는데..
<?
if (!defined("_GNUBOARD_"))
exit; // 개별 페이지 접근 불가
/*
* 2011-03-02
* g4m.kr 랜덤 배너스킨
* demo : http://www.g4m.kr/sample/
* g4m_banner(스킨디렉토리, 게시판테이블, 개수, 제목길이, 배너분류선택, 배너분류선택값)
* 기본값은 최신글과 사용법이 같습니다.
* 게시판에 제목, 내용(내용무관), 링크 #1, 첨부파일 #1 이용합니다. 이미지 및 플래시 배너 등록 가능.
* - 예제 -
* 배너선택1 : 분류, 또는 게시판 wr_id 값을
* 배너선택2 : 선택1에 따라 분류명을 넣거나 , 로 구분해서 게시판 wr_id 값을 넣음
* - 분류 사용시 분류를 대상으로 뽑기
* $banner_type = "cate";
* $banner_val = "분류A";
* echo g4m_banner('g4m_banner', "test_banner", 10,$banner_type,$banner_val);
* - 게시물 wr_id 기준으로 뽑기
* $banner_type = "wr_id";
* $banner_val = "2,3,4,10,33";// , 로 구분할것
* echo g4m_banner('g4m_banner', "test_banner", 10,$banner_type,$banner_val);
* - 최근 5개만 뽑기
* echo g4m_banner('g4m_banner', "test_banner", 5);
*/
?>
<!-- g4m_banner -->
<div class='latest_area'>
<?
shuffle($list);
if ($list['0']['file']['count'] > 0) {
if ($list['0']['file']['0']['image_type'] == '13') {
//flash 파일일 경우
$swf_file = $list['0']['file']['0']['path'] . "/" . $list['0']['file']['0']['file'];
$banner_tag = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='{$list[0][ca_name]}' height='{$list['0']['file']['0']['image_height']}'>
<param name='movie' value='{$swf_file}'>
<param name='quality' value='high'>
<param name='wmode' value='transparent'/>
<param name='allowScriptAccess' value='always'>
<embed src='{$swf_file}' quality=high width='{$list[0][ca_name]}' height='{$list['0']['file']['0']['image_height']}' type='application/x-shockwave-flash' pluginspace='http://www.adobe.com/go/getflashplayer' allowScriptAccess='always'></embed>
</object>";
} else {
//일반 이미지 파일일경우
$banner_tag = "<a href='{$list['0']['link_href']['1']}' title='{$list['0']['subject']}' onclick='window.open(this.href); return false'><img src='{$list['0']['file']['0']['path']}/{$list['0']['file']['0']['file']}' width='{$list[0][ca_name]}'/></a>";
}
echo $banner_tag;
}
?>
</div>
<!-- //g4m_banner -->