<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Arabic Keyboard -ChenZiyu </title>
<style>
*{margin:0px;}
</style><meta content="Microsoft FrontPage 4.0" name="GENERATOR">
<meta content="FrontPage.Editor.Document" name="ProgId">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><script language=javascript> function document.onkeydown()
{
   if ( event.keyCode!='39' ) //->衵璋芛
   {
   form1.txt.value=form1.txt.value + form1.hid_value.value;
   }
}
</script> 
</head><body bgcolor="#eeeeee"><form name="form1">
<input type="hidden" name="hid_value" value="&#1607;" />
<div align="center">
<center>
<table cellpadding="2" cellspacing="2" height="424">
  <tbody>
   <tr>
    <td dir="rtl" align="center" valign="center">
            <p><!--input type="text" SIZE="62" name="txt" value=""-->
            <textarea style="font-weight: bold; color: rgb(0, 0, 128);font-size:18px; font-family: Arial;" name="txt" rows="8" wrap="PHYSICAL" cols="48"></textarea> 
      </p>ChenZiyu</td>
  </tr>
  <tr>
    <td align="center" valign="center"><img src="key1.gif" usemap="#key" border="0" height="156" width="450"></td></tr>
  <tr>
    <td align="center" valign="center">
      <div align="center">
      <map name="key2">
      <area onclick="form1.txt.value=form1.txt.value + '&#1563;';" shape="RECT" coords="317,5,343,33">
      <area onclick="form1.txt.value=form1.txt.value + '&#1573;';" shape="RECT" coords="282,4,308,32">
      <area onclick="form1.txt.value=form1.txt.value + '&#1548;';" shape="RECT" coords="254,6,280,33">
      <area onclick="form1.txt.value=form1.txt.value + '&#1600;';" shape="RECT" coords="225,4,251,35">
      <area onclick="form1.txt.value=form1.txt.value + '&#1571;';" shape="RECT" coords="194,5,221,33">
      <area onclick="form1.txt.value=form1.txt.value + '&#1604;&#1571;';" shape="RECT" coords="164,6,192,32">
      <area onclick="form1.txt.value=form1.txt.value + '&#1567;';" shape="RECT" coords="129,6,158,35">
      <area onclick="form1.txt.value=form1.txt.value + '.';" shape="RECT" coords="100,6,127,32">
      <area onclick="form1.txt.value=form1.txt.value + ',';" shape="RECT" coords="71,6,97,34">
      <area onclick="form1.txt.value=form1.txt.value + '&#1570;';" shape="RECT" coords="36,6,62,34">
      <area onclick="form1.txt.value=form1.txt.value + '&#1604;&#1570;';" shape="RECT" coords="8,6,34,34">
  </map>
  <img src="key2.gif" usemap="#key2" border="0" height="43" width="354"> 
  </div>
</td>
  </tr>
 <tr>
    <td width="100%">
      <p align="center">
      <a name="source">
      <input style="font-family: Tahoma;" onclick="javascript:this.form.txt.focus();this.form.txt.select();" value="&#1581;&#1583;&#1583; &#1575;&#1604;&#1603;&#1604;" type="button"></a>
      <font face="Times New Roman, Times, serif">
      <input style="font-family: Tahoma;" value="&#1575;&#1605;&#1587;&#1581;" name="B1" type="reset"></font></p></td></tr>
  <tr dir="rtl" valign="top">
    <td align="center" valign="center">
      </td></tr></tbody></table></center><map name="key"><area onclick=";" shape="RECT" coords="119,123,292,146"><area onclick="form1.txt.value=form1.txt.value + '&#1584;'G();" shape="RECT" coords="7,5,32,29"><area onclick="form1.txt.value=form1.txt.value + '1';" shape="RECT" coords="37,4,60,26"><area onclick="form1.txt.value=form1.txt.value + '2';" shape="RECT" coords="65,4,89,28"><area onclick="form1.txt.value=form1.txt.value + '3';" shape="RECT" coords="96,3,117,28"><area onclick="form1.txt.value=form1.txt.value + '4';" shape="RECT" coords="125,5,147,27"><area onclick="form1.txt.value=form1.txt.value + '5';" shape="RECT" coords="155,5,176,28"><area onclick="form1.txt.value=form1.txt.value + '6';" shape="RECT" coords="183,4,205,27"><area onclick="form1.txt.value=form1.txt.value + '7';" shape="RECT" coords="212,5,235,27"><area onclick="form1.txt.value=form1.txt.value + '8';" shape="RECT" coords="241,6,263,28"><area onclick="form1.txt.value=form1.txt.value + '9';" shape="RECT" coords="271,6,292,30"><area onclick="form1.txt.value=form1.txt.value + '0';" shape="RECT" coords="298,4,324,30"><area onclick="form1.txt.value=form1.txt.value + '&#1592;';" shape="RECT" coords="334,92,361,118"><area onclick="form1.txt.value=form1.txt.value + '&#1586;';" shape="RECT" coords="306,92,331,114"><area onclick="form1.txt.value=form1.txt.value + '&#1608;';" shape="RECT" coords="276,93,300,115"><area onclick="form1.txt.value=form1.txt.value + '&#1577;';" shape="RECT" coords="246,93,271,115"><area onclick="form1.txt.value=form1.txt.value + '&#1609;';" shape="RECT" coords="219,91,245,115"><area onclick="form1.txt.value=form1.txt.value + '&#1604;&#1575;';" shape="RECT" coords="190,91,214,115"><area onclick="form1.txt.value=form1.txt.value + '&#1585;';" shape="RECT" coords="159,93,186,115"><area onclick="form1.txt.value=form1.txt.value + '&#1572;';" shape="RECT" coords="130,95,153,118"><area onclick="form1.txt.value=form1.txt.value + '&#1569;';" shape="RECT" coords="101,90,127,117"><area onclick="form1.txt.value=form1.txt.value + '&#1574;';" shape="RECT" coords="74,92,96,115"><area onclick="form1.txt.value=form1.txt.value + '&#1591;';" shape="RECT" coords="351,61,376,88"><area onclick="form1.txt.value=form1.txt.value + '&#1603;';" shape="RECT" coords="321,63,348,86"><area onclick="form1.txt.value=form1.txt.value + '&#1605;';" shape="RECT" coords="293,64,315,87"><area onclick="form1.txt.value=form1.txt.value + '&#1606;';" shape="RECT" coords="263,63,286,87"><area onclick="form1.txt.value=form1.txt.value + '&#1578;';" shape="RECT" coords="234,62,258,85"><area onclick="form1.txt.value=form1.txt.value + '&#1575;';" shape="RECT" coords="206,64,229,87"><area onclick="form1.txt.value=form1.txt.value + '&#1604;';" shape="RECT" coords="178,64,200,87"><area onclick="form1.txt.value=form1.txt.value + '&#1576;';" shape="RECT" coords="148,63,170,86"><area onclick="form1.txt.value=form1.txt.value + '&#1610;';" shape="RECT" coords="118,64,142,89"><area onclick="form1.txt.value=form1.txt.value + '&#1587;';" shape="RECT" coords="90,64,112,87"><area onclick="form1.txt.value=form1.txt.value + '&#1588;';" shape="RECT" coords="60,64,84,86"><area onclick="form1.txt.value=form1.txt.value + '&#1583;';" shape="RECT" coords="371,34,397,58"><area onclick="form1.txt.value=form1.txt.value + '&#1580;';" shape="RECT" coords="343,35,368,59"><area onclick="form1.txt.value=form1.txt.value + '&#1581;';" shape="RECT" coords="315,33,339,58"><area onclick="form1.txt.value=form1.txt.value + '&#1582;';" shape="RECT" coords="285,35,310,60"><area onclick="form1.txt.value=form1.txt.value + '&#1607;';" shape="RECT" coords="255,34,280,57"><area onclick="form1.txt.value=form1.txt.value + '&#1593;';" shape="RECT" coords="229,34,251,57"><area onclick="form1.txt.value=form1.txt.value + '&#1594;';" shape="RECT" coords="198,35,222,58"><area onclick="form1.txt.value=form1.txt.value + '&#1601;';" shape="RECT" coords="169,34,193,57"><area onclick="form1.txt.value=form1.txt.value + '&#1602;';" shape="RECT" coords="140,33,165,58"><area onclick="form1.txt.value=form1.txt.value + '&#1579;';" shape="RECT" coords="110,35,134,57"><area onclick="form1.txt.value=form1.txt.value + '&#1589;';" shape="RECT" coords="82,36,103,57"><area onclick="form1.txt.value=form1.txt.value + '&#1590;';" shape="RECT" coords="51,35,73,58"></map></div></form>

解决方案 »

  1.   

    老大不行啊,改成utf-8之后这段代码跟失效了似的没反应,状态栏也不显示出错,这是为什么呢?:
    function document.onkeydown()
    {
       if ( event.keyCode=='39' ) //->右箭头
       {
       form1.txt.value=form1.txt.value +"&#1583;";
       }
    }
    下面是该以前全部的代码:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html><head><title>Arabic Keyboard -ChenZiyu </title>
    <style>*{margin:0px;}</style><meta content="Microsoft FrontPage 4.0" name="GENERATOR">
    <meta content="FrontPage.Editor.Document" name="ProgId">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><script language=javascript> function document.onkeydown()
    {
       if ( event.keyCode=='39' ) //->右箭头
       {
       form1.txt.value=form1.txt.value +"&#1583;";
       }
    }
    </script> 
    </head><body bgcolor="#eeeeee">
    <form name="form1">
    <div align="center">
    <center>
    <table cellpadding="2" cellspacing="2" height="424">
      <tbody>
       <tr>
        <td dir="rtl" align="center" valign="center">
                <p><!--input type="text" SIZE="62" name="txt" value=""--><textarea style="font-weight: bold; color: rgb(0, 0, 128);font-size:18px; font-family: Arial;" name="txt" rows="8" wrap="PHYSICAL" cols="48"></textarea> 
          </p>ChenZiyu</td>
      </tr>
      <tr>
        <td align="center" valign="center"><img src="key1.gif" usemap="#key" border="0" height="156" width="450"></td></tr>
      <tr>
        <td align="center" valign="center">
          <div align="center"><map name="key2"><area onclick="form1.txt.value=form1.txt.value + '&#1563;';" shape="RECT" coords="317,5,343,33"><area onclick="form1.txt.value=form1.txt.value + '&#1573;';" shape="RECT" coords="282,4,308,32"><area onclick="form1.txt.value=form1.txt.value + '&#1548;';" shape="RECT" coords="254,6,280,33"><area onclick="form1.txt.value=form1.txt.value + '&#1600;';" shape="RECT" coords="225,4,251,35"><area onclick="form1.txt.value=form1.txt.value + '&#1571;';" shape="RECT" coords="194,5,221,33"><area onclick="form1.txt.value=form1.txt.value + '&#1604;&#1571;';" shape="RECT" coords="164,6,192,32"><area onclick="form1.txt.value=form1.txt.value + '&#1567;';" shape="RECT" coords="129,6,158,35"><area onclick="form1.txt.value=form1.txt.value + '.';" shape="RECT" coords="100,6,127,32"><area onclick="form1.txt.value=form1.txt.value + ',';" shape="RECT" coords="71,6,97,34"><area onclick="form1.txt.value=form1.txt.value + '&#1570;';" shape="RECT" coords="36,6,62,34"><area onclick="form1.txt.value=form1.txt.value + '&#1604;&#1570;';" shape="RECT" coords="8,6,34,34"></map><img src="key2.gif" usemap="#key2" border="0" height="43" width="354"> </div></td></tr>
     <tr>
        <td width="100%">
          <p align="center"><a name="source"><input style="font-family: Tahoma;" onclick="javascript:this.form.txt.focus();this.form.txt.select();" value="&#1581;&#1583;&#1583; &#1575;&#1604;&#1603;&#1604;" type="button"></a><font face="Times New Roman, Times, serif"><input style="font-family: Tahoma;" value="&#1575;&#1605;&#1587;&#1581;" name="B1" type="reset"></font></p></td></tr>
      <tr dir="rtl" valign="top">
        <td align="center" valign="center">
          </td></tr></tbody></table></center><map name="key"><area onclick="form1.txt.value=form1.txt.value + ' ';" shape="RECT" coords="119,123,292,146"><area onclick="form1.txt.value=form1.txt.value + '&#1584;';" shape="RECT" coords="7,5,32,29"><area onclick="form1.txt.value=form1.txt.value + '1';" shape="RECT" coords="37,4,60,26"><area onclick="form1.txt.value=form1.txt.value + '2';" shape="RECT" coords="65,4,89,28"><area onclick="form1.txt.value=form1.txt.value + '3';" shape="RECT" coords="96,3,117,28"><area onclick="form1.txt.value=form1.txt.value + '4';" shape="RECT" coords="125,5,147,27"><area onclick="form1.txt.value=form1.txt.value + '5';" shape="RECT" coords="155,5,176,28"><area onclick="form1.txt.value=form1.txt.value + '6';" shape="RECT" coords="183,4,205,27"><area onclick="form1.txt.value=form1.txt.value + '7';" shape="RECT" coords="212,5,235,27"><area onclick="form1.txt.value=form1.txt.value + '8';" shape="RECT" coords="241,6,263,28"><area onclick="form1.txt.value=form1.txt.value + '9';" shape="RECT" coords="271,6,292,30"><area onclick="form1.txt.value=form1.txt.value + '0';" shape="RECT" coords="298,4,324,30"><area onclick="form1.txt.value=form1.txt.value + '&#1592;';" shape="RECT" coords="334,92,361,118"><area onclick="form1.txt.value=form1.txt.value + '&#1586;';" shape="RECT" coords="306,92,331,114"><area onclick="form1.txt.value=form1.txt.value + '&#1608;';" shape="RECT" coords="276,93,300,115"><area onclick="form1.txt.value=form1.txt.value + '&#1577;';" shape="RECT" coords="246,93,271,115"><area onclick="form1.txt.value=form1.txt.value + '&#1609;';" shape="RECT" coords="219,91,245,115"><area onclick="form1.txt.value=form1.txt.value + '&#1604;&#1575;';" shape="RECT" coords="190,91,214,115"><area onclick="form1.txt.value=form1.txt.value + '&#1585;';" shape="RECT" coords="159,93,186,115"><area onclick="form1.txt.value=form1.txt.value + '&#1572;';" shape="RECT" coords="130,95,153,118"><area onclick="form1.txt.value=form1.txt.value + '&#1569;';" shape="RECT" coords="101,90,127,117"><area onclick="form1.txt.value=form1.txt.value + '&#1574;';" shape="RECT" coords="74,92,96,115"><area onclick="form1.txt.value=form1.txt.value + '&#1591;';" shape="RECT" coords="351,61,376,88"><area onclick="form1.txt.value=form1.txt.value + '&#1603;';" shape="RECT" coords="321,63,348,86"><area onclick="form1.txt.value=form1.txt.value + '&#1605;';" shape="RECT" coords="293,64,315,87"><area onclick="form1.txt.value=form1.txt.value + '&#1606;';" shape="RECT" coords="263,63,286,87"><area onclick="form1.txt.value=form1.txt.value + '&#1578;';" shape="RECT" coords="234,62,258,85"><area onclick="form1.txt.value=form1.txt.value + '&#1575;';" shape="RECT" coords="206,64,229,87"><area onclick="form1.txt.value=form1.txt.value + '&#1604;';" shape="RECT" coords="178,64,200,87"><area onclick="form1.txt.value=form1.txt.value + '&#1576;';" shape="RECT" coords="148,63,170,86"><area onclick="form1.txt.value=form1.txt.value + '&#1610;';" shape="RECT" coords="118,64,142,89"><area onclick="form1.txt.value=form1.txt.value + '&#1587;';" shape="RECT" coords="90,64,112,87"><area onclick="form1.txt.value=form1.txt.value + '&#1588;';" shape="RECT" coords="60,64,84,86"><area onclick="form1.txt.value=form1.txt.value + '&#1583;';" shape="RECT" coords="371,34,397,58"><area onclick="form1.txt.value=form1.txt.value + '&#1580;';" shape="RECT" coords="343,35,368,59"><area onclick="form1.txt.value=form1.txt.value + '&#1581;';" shape="RECT" coords="315,33,339,58"><area onclick="form1.txt.value=form1.txt.value + '&#1582;';" shape="RECT" coords="285,35,310,60"><area onclick="form1.txt.value=form1.txt.value + '&#1607;';" shape="RECT" coords="255,34,280,57"><area onclick="form1.txt.value=form1.txt.value + '&#1593;';" shape="RECT" coords="229,34,251,57"><area onclick="form1.txt.value=form1.txt.value + '&#1594;';" shape="RECT" coords="198,35,222,58"><area onclick="form1.txt.value=form1.txt.value + '&#1601;';" shape="RECT" coords="169,34,193,57"><area onclick="form1.txt.value=form1.txt.value + '&#1602;';" shape="RECT" coords="140,33,165,58"><area onclick="form1.txt.value=form1.txt.value + '&#1579;';" shape="RECT" coords="110,35,134,57"><area onclick="form1.txt.value=form1.txt.value + '&#1589;';" shape="RECT" coords="82,36,103,57"><area onclick="form1.txt.value=form1.txt.value + '&#1590;';" shape="RECT" coords="51,35,73,58"></map></div></form>
    </body></html>
      

  2.   

    我的方法是把實體碼先放在<input type="hidden">里還有一種做法就是設置textarea的css樣式font-family屬性
    具體設成什么我也不知道了(不知道行不)﹐
    我以前碰到和你一樣的問題﹐我是越南語
      

  3.   

    還可以把實體碼轉化為"escape"編碼﹐例如﹕"&#1607;" --> "%u0647%20"form1.txt.value=form1.txt.value + unescape("%u0647%20");如果覺得這種方法可行﹐我可以提供所有的阿拉伯字母的"escape"編碼