jQuery-rwdImageMaps-master.zip


출처 : https://github.com/stowball/jQuery-rwdImageMaps


<!-- 사용방법 -->

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>

<script src="jquery.rwdImageMaps.min.js"></script>

<script type="text/javascript">

<!--

$(document).ready(function(e) {

    $('img[usemap]').rwdImageMaps();

});

//-->

</script>

'JAVASCRIPT' 카테고리의 다른 글

함수 호출 시 ajax로 리턴값 받기  (0) 2016.01.29
iframe 자동 높이 조절  (0) 2015.10.19
마우스 클릭 위치 좌표값  (0) 2015.08.21
Datepicker 설정  (0) 2015.07.23
즐겨찾기 추가 스크립트  (0) 2015.07.18

쿠키(Cookies) 중복 체크 및 처리

ASP 2015. 11. 7. 16:30 Posted by Dayis

'-------------------------------------------------
' 쿠키 중복 체크
'-------------------------------------------------
Function CookieDuplicateCheck(tableName, idx)
    dim dupliChk
    dim c_read_idx
    dim i
    dupliChk = false
    
    c_read_idx = Request.Cookies("C_TABLE_NAME")("READ")
    
    Response.Cookies("C_TABLE_NAME") = tableName
    Response.Cookies("C_TABLE_NAME").Path = "/"
    Response.Cookies("C_TABLE_NAME").Expires = date+1

    arrRead = split(c_read_idx,",")
    for i = 1 to UBound(arrRead)
        if CInt(idx) = CInt(Trim(arrRead(i))) then
            dupliChk = true
        end if
    next
    if dupliChk = true then
        Response.Cookies("C_TABLE_NAME")("READ") = c_read_idx
    else
        Response.Cookies("C_TABLE_NAME")("READ") = c_read_idx & "," & idx
    end if
    CookieDuplicateCheck = dupliChk
End Function



If CookieDuplicateCheck("board", idx)=False Then 

'쿠키정보가 없을 때 처리

else

  '쿠키정보가 있을 때 처리

End If 

'ASP' 카테고리의 다른 글

ASP 달력 Calendar  (0) 2015.09.23
ASP 쿠키 로그인/로그아웃  (0) 2015.07.21
년월의 마지막 날짜(일) 구하기  (0) 2015.07.18
ASP 이미지 가로, 세로 크기 구하기  (0) 2015.01.19
페이지 초기번호  (0) 2015.01.04

<style type="text/css">

#toTop

{

z-index:1030;

width: 50px;

height: 45px;

border: 2px solid #f7f7f7;

background: #f7f7f7;

text-align: center;

position: fixed;

bottom: 50px;

right: 10px;

cursor: pointer;

display: none;

color: #333;

opacity: 0.6;

filter: alpha(opacity=60);

-webkit-border-radius: 10px;

-moz-border-radius: 10px;

-o-border-radius: 10px;

border-radius: 10px;

-webkit-transition: all .25s linear;

-moz-transition: all .25s linear;

-o-transition: all .25s linear;

transition: all .25s linear;

}

#toTop:hover

{

background: #b3b3b3;

border: 2px solid #b3b3b3;

*{outline:none;}

</style>


<script language="javascript">

$(document).ready(function(){

$('body').append('<div id="toTop"><img src="arrow-up.png"></div>');

$("#toTop").bind("click", function () {$("body,html").animate({ scrollTop: 0 }, 400);});

$(window).scroll(function () {

if ($(this).scrollTop() != 0) {

$('#toTop').fadeIn();

} else {

$('#toTop').fadeOut();

}

});

});

</script>



※ 화살표 이미지