Announcement

Collapse
No announcement yet.

How to: Add search Box manually

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to: Add search Box manually

    Hi,

    I would like to know how can i add a "serach Box" in my homepage. As my homepage is maunally written so i have to code it by myself. Please tell me what is the HTML codes to be added. I have also found this box.

    Is it this one?

    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr><td valign="top" width="110"> <br> [TOPLEVELSECTIONSTOP] <br><br><br><br><br><br><br><br><br><br><br>
    <br>[SIMPLESEARCH] <br><table width="110" border="0" cellspacing="0" cellpadding="0" align="left"><tr><td bgcolor="cccccc"><div align="center"> <span class="actxxsmall"> <font color="666666"><script language="JavaScript">document.write("[CARTCOOKIEITEMS]&nbsp;" + getCartItem(3)+"&nbsp;<BR>");
    document.write("[CARTCOOKIEVALUE]&nbsp;" + getCartItem(1));</script></font></span> </div></td></tr></table>

    With Regards,
    Sweee
    Http://www.hst.com.sg

    #2
    Hi there,

    I manually create my homepage and have added a search box to it. This is the code:

    <table width="100%" border="0" bgcolor="#ffcc00" cellpadding="1" cellspacing="0"><tr> <td class="sidenavigationWhite" align="center">Search</td></tr><tr> <td> <table width="100%" border="0" bgcolor="#FFFFFF" class="sidenavigation" cellpadding="1" cellspacing="2" bordercolor="#ffcc00" align="center"><tr> <td>
    <table cellspacing=0 cellpadding=0 border=0 align=center width="100%">
    <form name=simplesearch action="http://www.pramcentre.co.uk/cgi-bin/ss000001.pl" method="GET"><tr> <td valign=middle noWrap align=left> <input type="TEXT" name="SS" size="15" maxsize="125" value="quick search" onFocus="this.value='';this.style.background='#FFFFFF'"> &nbsp; </td><td valign=bottom noWrap align=left>
    <input type="image" border="0" name="ACTION" src="secure/acatalog/go_pram_button.gif" width="35" height="20">
    <input type=HIDDEN name="PR" value="-1"><input type=HIDDEN name="TB" value="A"><input type=HIDDEN name="SHOP" value=""></td></tr><tr> <td valign=middle noWrap align=center colspan="2"><a href="secure/acatalog/search.html" class="actxxsmall">advanced search</a></td></tr></form></table></td></tr></table></td></tr></table>

    You can see from my site that there is a bit of formatting around the box, which you may not want.

    Hopefully this will help.

    Regards

    Andrew
    -----------------------------
    <a href=http://www.pramcentre.co.uk>http://www.pramcentre.co.uk</a>
    -----------------------------

    Comment


      #3
      Hi asprott,

      The Code was very useful. Thank you very much. However, my alignment got to suffer abit..kind of distorted after addding the serach box! keke. But still, thanks alot.

      With regards,
      Sweeeee
      Http://www.hst.com.sg

      Comment

      Working...
      X