【HTML】
			<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
			<html>
			 <head>
			  <meta http-equiv="content-type" content="text/html;charset=utf-8">
			  <title>jQuery Sample</title>
			  <link rel="stylesheet" href="css/main.css" type="text/css" media="all">
			  <script type="text/javascript" src="js/jquery.js"></script>
			  <script type="text/javascript" src="js/mypugin.js"></script>
			  <script type="text/javascript" src="js/main.js"></script>
			 </head>
			 <body>
			  <h1>jQueryサンプル</h1>
			  <p>jQuery UIのプラグインを追加</p>
			  <div id="myArea">ここのブロックが色で強調されます</div>
			 </body>
			</html>
			【CSS】
			h1 {
			 font-size:14pt;
			 border-bottom:1px dotted gray;
			 width:320px;
			}
			【JavaScript】
			$(function(){
			 $("#myArea").caution();
			});
			【プラグイン】myplug.js
			$.fn.caution = function(){
			 this.css("color", "red");
			 return this.css("backgroundColor", "yellow");
			}
		
【HTML】
			<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
			<html>
			 <head>
			  <meta http-equiv="content-type" content="text/html;charset=utf-8">
			  <title>jQuery Sample</title>
			  <link rel="stylesheet" href="css/main.css" type="text/css" media="all">
			  <script type="text/javascript" src="js/jquery.js"></script>
			  <script type="text/javascript" src="js/mypugin.js"></script>
			  <script type="text/javascript" src="js/main.js"></script>
			 </head>
			 <body>
			  <h1>jQueryサンプル</h1>
			  <p>jQuery UIのプラグインを追加</p>
			  <div class="msg">1.ここのブロックの前に黒い四角が追加されます。</div>
			  <div class="msg">2.ここのブロックの前に黒い四角が追加されます。</div>
			 </body>
			</html>
			【CSS】
			h1 {
			 font-size:14pt;
			 border-bottom:1px dotted gray;
			 width:320px;
			}
			.msg {
			 width:320px;
			 border:1px solid gray;
			 background-color:#f0f0f0;
			}
			【JavaScript】
			$(function(){
			 $(".msg").rectMark();
			});
			【プラグイン】myplug.js
			$.fn.rectMark = function(){
				return this.each(function(){
				this.innerHTML ="■"+this.innerHTML;
				});
			}
			
【HTML】
			<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
			<html>
			 <head>
			  <meta http-equiv="content-type" content="text/html;charset=utf-8">
			  <title>jQuery Sample</title>
			  <link rel="stylesheet" href="css/main.css" type="text/css" media="all">
			  <script type="text/javascript" src="js/jquery.js"></script>
			  <script type="text/javascript" src="js/mypugin.js"></script>
			  <script type="text/javascript" src="js/main.js"></script>
			 </head>
			 <body>
			  <h1>jQueryサンプル</h1>
			  <p>jQuery UIのプラグインを追加</p>
			  <div class="msg"> 文章の前に全角の空白がある場合、自動的に削除されます(ここは有り)</div>
			  <div class="msg">文章の前に全角の空白がある場合、自動的に削除されます(ここは無し)</div>
			  <div class="msg">文章の前に全角の空白がある場合、自動的に削除されます(ここは無し)</div>
			  <div class="msg"> 文章の前に全角の空白がある場合、自動的に削除されます(ここは有り)</div>
			 </body>
			</html>
			【CSS】
			h1 {
			 font-size:14pt;
			 border-bottom:1px dotted gray;
			 width:320px;
			}
			.msg {
			 width:320px;
			 border:1px solid gray;
			 background-color:#f0f0f0;
			}
			【JavaScript】
			$(function(){
			 $(".msg").cutFirstSpace();
			});
			【プラグイン】myplug.js
			$.fn.cutFirstSpace = function(){
			 this.each(function(){
			  var txt = this.innerHTML;
			  if (txt.charAt(0) == " ") {
			   var sText = txt.substr(1, txt.length);
			   this.innerHTML = sText;
			  }
			 });
			}
		
			【CSS】
			h1 {
			 font-size:14pt;
			 border-bottom:1px dotted gray;
			 width:320px;
			}
			.msg {
			 width:320px;
			 border:1px solid gray;
			 background-color:#f0f0f0;
			}
			【JavaScript】
			$(function(){
			 $(".msg").cutFirstSpace();
			});
			【プラグイン】myplug.js
			$.fn.cutFirstSpace = function(){
			 var txt = this.html();
			 if (txt.charAt(0) == " ") {
			  var sText = txt.substr(1, txt.length);
			  return this.html(sText);
			 }
			}