就是google的效果 往输入框输入拼音  显示的拼音的汉字 谢谢

解决方案 »

  1.   

    <html>
      <head>
      </head>
      <body>
    <form id="f">
                  <input type=text name=wd id=kw size=42 maxlength=100>
    </form>
      </body>
    <script>var w=document.getElementById("kw");function s(o){if(w.value.length>0){var h=o.href;var q=encodeURIComponent(w.value);if(h.indexOf("q=")!=-1){o.href=h.replace(new RegExp("q=[^&$]*"),"q="+q)}else{o.href+="?q="+q}}};(function(){if(new RegExp("q=([^&]+)").test(location.search)){w.value=decodeURIComponent(RegExp.$1)}})();if(navigator.cookieEnabled && !/sug?=0/.test(document.cookie)){document.write('<script src=http://www.baidu.com/js/bdsug.js?v=1.1.0.3><\/script>')};window.onunload=function(){};</script>
      

  2.   

    LZ可以参考http://www.inputking.com/