antandsons Posted January 6, 2007 Posted January 6, 2007 How would one go about including a couple of search boxes (like http://www.cnbc.com has on the top) with a picture in the background, lets say a corporate logo. What would be the simplest way to do the coding on that? I'm trying to go for this effect, it is very similar to Yahoo's search box on the top of their front page. Quote
TCH-Thomas Posted January 6, 2007 Posted January 6, 2007 The simplest would be to check out hotscripts.com and see if there are any already made scripts. Quote
btrfld Posted January 6, 2007 Posted January 6, 2007 (edited) Assuming that you already know or can get the necessary code for the search form, the visual effect would be done by placing the form in a <div> with the background-image you want. HTML <div id="srch"> <form> . . . </form> </div> CSS div#srch { width: [image width]px; height [image height]px; background-image: url(image/reference/here); } Is that what you mean? Edited January 6, 2007 by btrfld Quote
carbonize Posted January 6, 2007 Posted January 6, 2007 As btrfld says it's just a div with a background image. The image in question being http://www.cnbc.com/images/cnbc/navigation..._back_plain.jpg Quote
antandsons Posted January 21, 2007 Author Posted January 21, 2007 Thanks for your suggestions. However, I tried doing it and this is what I got: http://www.antandsons.com/test/index.php (Style sheet is here http://www.antandsons.com/style.css) Quote
heyguy Posted January 21, 2007 Posted January 21, 2007 Doesn't look like you're using the stylesheet. Try adding ><link href="../style.css" rel="stylesheet" type="text/css"> in between your head tags. Quote
antandsons Posted January 22, 2007 Author Posted January 22, 2007 Doesn't look like you're using the stylesheet. Try adding ><link href="../style.css" rel="stylesheet" type="text/css"> in between your head tags. Mistakenly forgot about that, but I added it in between the head tags and it still does not work. Search function is working, but no background image showing. Quote
TCH-Bruce Posted January 22, 2007 Posted January 22, 2007 This doesn't look right to me: ><form method="get" action="http://www.your-TCH-domain.com/search/search.pl"> <input name="Terms" id="fdse_TermsEx" type="text" style="width:98%; border:solid 0; /></td> <td width="61" align="right" valign="middle"><div align="right"> <input name="submit" value="Search" type="image" src="../../images/search_bottom.gif" /> </form> Note your and tags. Where is the rest of the table? And the closing tag is before the opening tag. Quote
antandsons Posted January 23, 2007 Author Posted January 23, 2007 Check it out now...looks pretty cool. Just cannot seem to get the search box lined up with the input text box. BTW, i appreciate all the help you all have given me on this. Quote
TCH-Bruce Posted January 23, 2007 Posted January 23, 2007 You are still missing a closing table tag. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.