SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2002
    0 Post(s)
    0 Thread(s)

    Adding Atomz Search Engine to My Site

    I am trying to make my site
    I am having some difficulty adding the atomz search to my site. I bought a template with both a drop down menu and a search box.

    This is the code that I need to fix (where it says <input type=text> is where the search engine is supposed to be)

    <form name="jump">
    function jumpMenu(){[].value;

    <td width=50% height="31" align=right background="../img/search_bg.gif"><img src="../img/search1.gif" width="88" height="31" border="0" alt=""></td>
    <td background="../img/search_bg.gif"><input type="text"></td>
    <td background="../img/search_bg.gif"><img src="../img/go.gif" width="47" height="31" border="0" alt="GO!"></td>
    <td><img src="../img/browse.gif" width="82" height="31" border="0" alt=""></td>
    <td background="../img/search_bg.gif"><select name="menu">
    <option>Please Select A Category</option>
    <option value="">Stun Guns</option>
    <option value="">Taser Guns</option>
    <option value="">Pepper Sprays</option>
    <option value="">Mace Sprays</option>
    <option value="">Knives</option>
    <option value="">Diversion
    <option value="">Spy Gear</option>
    <option value="">Child Safety</option>
    <option value="">Animal Repellents</option>
    <option value="">Home Protection</option>
    <option value="">Metal Detectors</option>
    <option value="">Safety Lights</option>
    <option value="">Personal Alarms</option>
    <option value="">Miscellaneous</option>
    <option value="">ON SALE!</option>
    <td width=50% background="../img/search_bg.gif"><a href="Javascript:jumpMenu()">
    <img src="../img/go2.gif" width="50" height="31" border="0" alt="GO!"></a></td>

    this is what atomz says needs to be put:

    <form method="get"action="">
    <input size=15 name="sp-q"><br>
    <input type=submit value="Search">
    <input type=hidden name="sp-a" value="sp10021ec8">
    <input type=hidden name="sp-f" value="ISO-8859-1">

    i think the problem is that the search box form cant be put in the dropdown menu form. i would appreciate any help.

    Thank you,

  2. #2
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Salford / Manchester / UK
    0 Post(s)
    0 Thread(s)
    not to sound rude, but the problem is that i think you need to read up on how to do properly formed forms (.e.g your GO button should not be an img, but <input type="image" border="0" name="whatever" src="whatever/your/file/location/is">)
    a solution to your problem: as you can't nest forms (as you discovered), put two forms in one after the other (one pretty much the one that atomz suggest, the other only with your dropdown jump menu).
    p.s.: duplicate posting is frowned upon in these fora...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member | |


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts