동적으로 img 태그 생성하는 방법 > script

본문 바로가기
사이트 내 전체검색

script

동적으로 img 태그 생성하는 방법

페이지 정보

작성자 서방님 댓글 0건 조회 138회 작성일 12-12-07 11:17

본문

$('<img>', {
src: 'images/little.bear.png',
alt: 'Little Bear',
title:'I woof in your general direction',
click: function(){
alert($(this).attr('title'));
}
}).css({
cursor: 'pointer',
border: '1px solid black',
padding: '12px 12px 20px 12px',
backgroundColor: 'white'
}).appendTo('body');

댓글목록

등록된 댓글이 없습니다.

Total 846건 9 페이지
게시물 검색

회원로그인

접속자집계

오늘
75
어제
84
최대
1,347
전체
154,446
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.