지운아빠님 이 소스 써도 돼나요?...ㅡ.,ㅡㅋ > 자유게시판

자유게시판

지운아빠님 이 소스 써도 돼나요?...ㅡ.,ㅡㅋ 정보

지운아빠님 이 소스 써도 돼나요?...ㅡ.,ㅡㅋ

본문



<script type="text/javascript">
$(document).ready(function(){
    //소스 인용 http://sir.co.kr
    $ol_id = $('#ol_id');
    $ol_pw = $('#ol_pw');
    if ($ol_id.attr('value') == "") $ol_id.addClass('input_id'); //아이디 저장을 안 쓸 때만 백그라운드 사용
    $ol_pw.addClass('input_pw');
    $ol_id.focus(function() {
        $(this).removeClass('input_id');
        $(this).addClass('input_id_select');
    });
    $ol_pw.focus(function() {
        $(this).removeClass('input_pw');
        $(this).addClass('input_pw_select');
    });
    $ol_id.blur(function() {
        $this = $(this);
        if($this.attr('id') == "ol_id" && $this.attr('value') == "") $this.addClass('input_id');
    });
    $ol_pw.blur(function() {
        $this = $(this);
        if($this.attr('id') == "ol_pw" && $this.attr('value') == "") $this.addClass('input_pw');
    });
});
</script>

외부로그인 만드려는데 저 소스가 필요해서...ㅡ.,ㅡㅋ

추천
0
  • 복사

댓글 5개

© SIRSOFT
현재 페이지 제일 처음으로