<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="./jquery-1.7.2.min.js"> 		
    </script>
    <script>
		$(document).ready(function(){
			$('img').attr('src'	, 'http://static.naver.net/www/u/2010/0611/nmms_215646753.gif	').attr('title', "그림입니다.");
			$('p').text($('img').attr('src')+$('img').attr('title'));
			$('img').attr({width: '200', height: '200'});
			
		});
	</script>	
</head>

<body>
	<img />
	<p></p>
</body>
</html>



'JavaScript > JQuery' 카테고리의 다른 글

jquery - image toggle  (0) 2012.06.15
jquery - mouseover, mouseleave  (0) 2012.06.15
jquery - 버튼 클릭시 이미지 hide&show  (0) 2012.06.15
jquery - setInterval  (0) 2012.06.15
jquery - attribute  (0) 2012.06.15

+ Recent posts