|
|
@@ -385,6 +385,7 @@
|
|
|
let endRow = result.endRow - result.paging.pageable.pageSize;
|
|
|
var htm = fnCreateGoodsList(result, ithrCd, contentLoc, goodsUrl, lastPage, endRow);
|
|
|
gagaInfiniteScroll.draw(htm);
|
|
|
+ fnImgOnoff();
|
|
|
}else {
|
|
|
if($("#searchForm input[name=pageNo]").val()==1){
|
|
|
$('#listBox').html('<li class="none">상품정보가 존재하지 않습니다.</li>');
|
|
|
@@ -507,6 +508,53 @@
|
|
|
return tag;
|
|
|
}
|
|
|
|
|
|
+ var fnImgOnoff = function (){
|
|
|
+ var nowMov = $('.itemPic').children('.pd_mov');
|
|
|
+ var nowImg = $('.itemPic').children('.pd_img');
|
|
|
+ var ogrSrc;
|
|
|
+ var overSrc;
|
|
|
+ var srcName = nowImg.attr('src');
|
|
|
+ overSrc = srcName.substring(0, srcName.lastIndexOf('.'));
|
|
|
+
|
|
|
+ var img1;
|
|
|
+ var img2;
|
|
|
+
|
|
|
+ $(nowMov).on('mouseover', function() {
|
|
|
+ // [on] size opt
|
|
|
+ $(this).siblings(".itemOpt").stop().animate({"bottom": 0}, 400,"swing");
|
|
|
+ // [on] mov none
|
|
|
+ $(this).css("opacity","0");
|
|
|
+ // return false;
|
|
|
+ });
|
|
|
+ $(nowMov).on('mouseleave', function() {
|
|
|
+ // [off] size opt
|
|
|
+ $(this).siblings(".itemOpt").stop().animate({"bottom": -120}, 400,"swing");
|
|
|
+ // [off] mov block
|
|
|
+ $(this).css("opacity","1");
|
|
|
+ // return false;
|
|
|
+ });
|
|
|
+ $(nowImg).on('mouseover', function() {
|
|
|
+ img1 = $(this).attr('src');
|
|
|
+ img2 = $(this).attr('data-img');
|
|
|
+ // [on] size opt
|
|
|
+ $(this).siblings(".itemOpt").stop().animate({"bottom": 0}, 400,"swing");
|
|
|
+ // [on] re-Name
|
|
|
+ // ogrSrc = $(this).attr('src').substring(0, srcName.lastIndexOf('.'));
|
|
|
+ // overSrc = $(this).attr('src').substring(0, srcName.lastIndexOf('.'));
|
|
|
+ // $(this).attr('src', overSrc+ '_onhover.' + /[^.]+$/.exec(srcName));
|
|
|
+ $(this).attr('src',img2);
|
|
|
+ // return false;
|
|
|
+ });
|
|
|
+ $(nowImg).on('mouseleave', function() {
|
|
|
+ // [off] size opt
|
|
|
+ $(this).siblings(".itemOpt").stop().animate({"bottom": -120}, 400,"swing");
|
|
|
+ // [off] re-Name
|
|
|
+ // $(this).attr('src', overSrc + '.' + /[^.]+$/.exec(srcName));
|
|
|
+ $(this).attr('src', img1);
|
|
|
+ // return false;
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
// 사파리 - event.persisted || 크롬 - window.performance.navigation.type 이 1이면 새로고침, 2면 페이지 이동을 통한 캐쉬페이징
|
|
|
$(window).on("pageshow", function(event) {
|
|
|
$('#filterForm input[name=brand]:checked').each(function(){
|
|
|
@@ -566,43 +614,7 @@
|
|
|
<script>
|
|
|
//(진행 중)
|
|
|
$(document).ready( function() {
|
|
|
- var nowMov = $('.itemPic').children('.pd_mov');
|
|
|
- var nowImg = $('.itemPic').children('.pd_img');
|
|
|
- var ogrSrc;
|
|
|
- var overSrc;
|
|
|
- var srcName = nowImg.attr('src');
|
|
|
- overSrc = srcName.substring(0, srcName.lastIndexOf('.'));
|
|
|
|
|
|
- $(nowMov).on('mouseover', function() {
|
|
|
- // [on] size opt
|
|
|
- $(this).siblings(".itemOpt").stop().animate({"bottom": 0}, 400,"swing");
|
|
|
- // [on] mov none
|
|
|
- $(this).css("opacity","0");
|
|
|
- // return false;
|
|
|
- });
|
|
|
- $(nowMov).on('mouseleave', function() {
|
|
|
- // [off] size opt
|
|
|
- $(this).siblings(".itemOpt").stop().animate({"bottom": -120}, 400,"swing");
|
|
|
- // [off] mov block
|
|
|
- $(this).css("opacity","1");
|
|
|
- // return false;
|
|
|
- });
|
|
|
- $(nowImg).on('mouseover', function() {
|
|
|
- // [on] size opt
|
|
|
- $(this).siblings(".itemOpt").stop().animate({"bottom": 0}, 400,"swing");
|
|
|
- // [on] re-Name
|
|
|
- ogrSrc = $(this).attr('src').substring(0, srcName.lastIndexOf('.'));
|
|
|
- overSrc = $(this).attr('src').substring(0, srcName.lastIndexOf('.'));
|
|
|
- $(this).attr('src', overSrc+ '_onhover.' + /[^.]+$/.exec(srcName));
|
|
|
- // return false;
|
|
|
- });
|
|
|
- $(nowImg).on('mouseleave', function() {
|
|
|
- // [off] size opt
|
|
|
- $(this).siblings(".itemOpt").stop().animate({"bottom": -120}, 400,"swing");
|
|
|
- // [off] re-Name
|
|
|
- $(this).attr('src', overSrc + '.' + /[^.]+$/.exec(srcName));
|
|
|
- // return false;
|
|
|
- });
|
|
|
});
|
|
|
</script>
|
|
|
|