¥Æ¥¥¹¥È¥Ü¥Ã¥¯¥¹¤ËȾ³Ñʸ»ú¤¬ÆþÎϤµ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¡¢¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£
¡¦¥µ¥ó¥×¥ë¤ò¸«¤ë
¡¦¥½¡¼¥¹¤òÊݸ¤¹¤ë ¡Ê±¦¥¯¥ê¥Ã¥¯¢ª¡ÖÂоݤò¥Õ¥¡¥¤¥ë¤ËÊݸ¡×or¡Ö¥ê¥ó¥¯¤ò̾Á°¤òÉÕ¤±¤ÆÊݸ¡×¤·¤Æ²¼¤µ¤¤¡£¡Ë
¡¦¥½¡¼¥¹¤ò¸«¤ë ¡¦²òÀâ¤ò¸«¤ë
[ ¥½¡¼¥¹ ]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<script language="JavaScript">
<!--//Copyright (C) WEST MiRa http://www.west-mira.jp
function moji_hantei()
{
kekka=0;
moji=document.form1.text1.value;
for(i=0; i<moji.length; i++)
{
dore=escape(moji.charAt(i));
if(navigator.appName.indexOf("Netscape")!=-1)
{
if((dore.length==3 && dore.indexOf("%")!=-1) || dore.length==1)kekka++;
}
else
{
if(moji.match(/\w/g) != null)kekka++;
else if(dore.indexOf("%uFF")!=-1 && '0x'+dore.substring(2,dore.length) > 0xFF60 && '0x'+dore.substring(2,dore.length) < 0xFFA0)kekka++;
else if(dore.length == 3)kekka++;
}
}
if(kekka>0)alert("Ⱦ³Ñʸ»ú¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£");
else alert("Ⱦ³Ñʸ»ú¤Ï´Þ¤Þ¤ì¤Æ¤¤¤Þ¤»¤ó¡£");
}
//-->
</script>
</head>
<body>
<form name="form1">
<input type="text" name="text1" size="30"><br>
<input type="button" value="Click!" onClick="moji_hantei();">
</form>
¡¡¡¦
¡¡¡¦
¡¡¡¦
</body></html>
[ ²òÀâ ]
¡½¡½¡½¡½¡½¡½¡½¡½¡½¡½¡½¡½¡½¡½¡½¡½¡½
|