エレメントの属性を設定する (setAttribute)
		
			
説明
			エレメントの属性を設定するにはsetAttribute()を使います。最初のパラメータには属性名を指定し、2番目のパラメータには設定したい値を指定します。
		
		
			
サンプルプログラム
			window.onload = function(){
			 var ele = document.createElement("img");
			 ele.setAttribute("src", "images/sample.jpg");
			 ele.setAttribute("width", "128");
			 ele.setAttribute("height", "64");
			 document.body.appendChild(ele);
			}