ThaiSEOBoard.com

ความรู้ทั่วไป => General (ถามคุยวิชาการ IM) => ข้อความที่เริ่มโดย: unlimited-knowledge ที่ 24 กันยายน 2008, 14:01:52



หัวข้อ: สอบถามเรื่องการใช้ Google Custom Search
เริ่มหัวข้อโดย: unlimited-knowledge ที่ 24 กันยายน 2008, 14:01:52
ได้ code ของ Google Custom Search มาแล้ว แต่ติดตรงที่เมื่อนำไปวางที่หน้า Page แล้ว กด ค้นหา มันไม่ทำงานอะครับ มันแค่ Refresh หน้า Page เท่านั้นเอง แต่ถ้าสร้าง File Html ใหม่แล้วเอา code ไปวางดูกลับทำงานได้ อยากทราบว่าผมกำหนดอะไรผิดหรือป่าวครับ

ตัวอย่าง code ที่ได้มาจาก Google
<style type="text/css">
@import url(http://www.google.com/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000">
  <div class="cse-branding-form">
    <form action="http://www.google.com/cse" id="cse-search-box">
      <div>
        <input type="hidden" name="cx" value="010313072350401466970:ffdy1qglnxu" />
        <input type="hidden" name="ie" value="UTF-8" />
        <input type="text" name="q" size="31" />
        <input type="submit" name="sa" value="ค้นหา" />
      </div>
    </form>
  </div>
  <div class="cse-branding-logo">
    <img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" />
  </div>
  <div class="cse-branding-text">
    Custom Search
  </div>
</div>