Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Searching for graphics on website

Jun 17, 2005 6:24AM PDT

We need to add a search form to our website for visitors to input a product style number to bring up an image of the product (or a catalog page featuring the product). All of the search engines I find will just search for text. They all come up with a page of results. All of the commercial websites have the kind of graphic search function that I want but I cannot figure out how to do it. Is there software that will do this? None of the Dreamweaver or Frontpage reference books help.

Discussion is locked

- Collapse -
using google image
Jun 27, 2005 2:45PM PDT

Hello,

What development platform are you using? PHP? ASP? I don't think there's any search engine services that allows you to search images on your site. But if your site is indexed by google, you can use a form as follows: (replace domain.com with your domain name)

<form method=''get'' action=''http://images.google.com/images'' onsubmit=''JavaScript:keyword( this.q.value, 'image' )'' style=''display: inline;''>
<table width=''100%'' cellspacing=''0'' cellpadding=''1'' border=''0''>
<tr>
<td colspan=''2''>
<a href=''index.php?p=module&action=image''>
<font size=''2'' face=''verdana'' color=''#003399''>
<b>Specific image search</b></font></a><br>
</td>
</tr>
<tr>
<td nowrap=''nowrap''>
<input type=''text'' name=''q'' style=''width: 250px;'' maxlength=''255'' value=''keyword'' onFocus=''this.value='';''>
<input type=''hidden'' name=''Overview'' value=''1''>
<input type=''hidden'' name=''as_sitesearch'' size=''14'' maxlength=''255'' value=''domain.com''>
</td>
<td align=''right''><input type=''submit'' name=''sa'' value=''search''>
</td>
</tr>
</table>
</form>

- Collapse -
searching images on website
Jun 28, 2005 5:03AM PDT

Thanks for the info on google search. I want to store the images on the website in the images folder, not on google. There is no search engine I can use but there is a way to write html code to do this. Anyone know?
Thanks, Al

- Collapse -
HTML is not "executable".
Jun 28, 2005 5:22AM PDT

You may have better luck at javascript or such.

Bob

- Collapse -
In Site Search Engine
Jul 25, 2005 5:30AM PDT

Sorry I didn't really understand what you were trying to do. Are you trying to design an In-site search engine? That would be relatively easy using PHP and a mySQL backend. If you need more information, feel free to send me an email.