썸네일 이미지를 클릭하면 창이 하나 쭈욱 올라오면서

해당 썸네일 이미지 alt속성에 있던 이미지 주소를 따와서 이미지를 보여주는걸 구현하고 있는데요.



$('#content > img').클릭(

    function() {

        var $this = $(this);

        var title = $this.attr('title');

        

        $desc.html(title).show();

        $loading.show();

        

        $('<img>').on('load', function() {

            var $img = $(this);

            $loading.hide();

            $('#panel').animate({

                'height': '100%'

            }, 500);

            $img.appendTo('#wrapper');

            $img.fadeIn(1000);

        }).attr('src', $this.attr('alt'));

    }

);


얘는 되고


$('#content > img').클릭(

    function() {

        var $this = $(this);

        var title = $this.attr('title');

        

        $desc.html(title).show();

        $loading.show();

        

        $('<img>').on('load', function() {

            var $img = $(this);

            $loading.hide();

            $('#panel').animate({

                'height': '100%'

            }, 500);

            $img.appendTo('#wrapper');

 $img.attr('src', $this.attr('alt'));

            $img.fadeIn(1000);

        });

    }

);


얘는 안되는 이유가 뭐죠?

(클릭이 금지어라 한글로 썼음)