Search box embedded into menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
reggsenterprises
Advanced
Advanced
Posts: 15
Joined: Tue Feb 21, 2006 4:42 am
Contact:

Search box embedded into menu

Post by reggsenterprises »

Is there a way to embedd a search bar into the menu where you would click on the menu "search" option and the search bar would pop onto the screen where you could enter what you want to search for? This would replace using valuable space on the site page for the search bar.

I would assume it's a matter of entering the code for the search bar into the menu option but I'm sure there's additional code to make this work.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Here's a simple form I did to subscribe to my newsletter...

Code: Select all

aI("text=Our Newsletter...<br><form action=http://pdaoutlet.biz/cgi-bin/mail.cgi><input type=hidden name=flavor value=subscribe><input type=hidden name=list value=pda><input type=text name=email><br><br><input type=submit value=Subscribe></form>;type=form;align=center;");
Here's the one Milonic has on their home page...

Code: Select all

	aI("text=`<FORM METHOD=GET ACTION=/search.php name=search style='margin:0px;'><table><tr><td class=backW>Search Milonic</td></tr><tr><td class=backW><input name=q size=11></td></tr><tr><td><input type=submit value=Search></td></tr></table></form>`;type=form;align=center;onbgcolor=;onborder=;");
John
reggsenterprises
Advanced
Advanced
Posts: 15
Joined: Tue Feb 21, 2006 4:42 am
Contact:

Post by reggsenterprises »

Not knowing html as well as I should, can anyone take the code below and incorporate it into the Milonic search that John shows above or tell me where I can go to find out how? Thanks.
The code for my search is:

<FORM ACTION="http://search.freefind.com/find.html" METHOD="GET" target="_self">
<FONT size=1 face="arial,helvetica" >
<INPUT TYPE="HIDDEN" NAME="id" VALUE="9999999">
<INPUT TYPE="HIDDEN" NAME="pageid" VALUE="r">
<INPUT TYPE="HIDDEN" NAME="mode" VALUE="ALL">
<INPUT type="HIDDEN" name="n" value="0">
<INPUT TYPE="TEXT" NAME="query" SIZE="15"><small>
<INPUT TYPE="SUBMIT" VALUE=" Find "><br>
</small>powered by <A HREF="http://www.freefind.com">
FreeFind</A></font></FORM>
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Knowing HTML doesn't matter in this case (i.e., samples provided). Remove all quotes, shove it all together, add the type=form;, and stuff it all into an aI statement...

Code: Select all

aI("text=<form action=http://search.freefind.com/find.html method=get target=_self><font size=1 face=arial,helvetica><input type=hidden name=id value=9999999><input type=hidden name=pageid value=r><input type=hidden name=mode value=all><input type=hidden name=n value=0><input type=text name=query size=15><small><input type=submit value= Find ><br></small>powered by <a href="http://websites.milonic.com/freefind.com>FreeFind</a></font></form>;type=form;");
John
reggsenterprises
Advanced
Advanced
Posts: 15
Joined: Tue Feb 21, 2006 4:42 am
Contact:

Post by reggsenterprises »

John,
I like the new technical term.. "stuff it". I was actually going to try that but didn't think it could be that easy. Thanks.
Reggs
Post Reply