View Full Version : Internal Search engine for image files

Jul 10th, 2002, 06:24 PM
I'm looking to design a searchable webpage for my stock photography. I've found resources on searching for text but none on linking searches with image files. I understand that I'm going to have to keyword the images (How's this done?). I also am not clear on what to use...is it html, or a script or what? Any suggestions or links would be helpful.

Thank you.

Jul 10th, 2002, 07:55 PM
I suggest to use a database to store your images(paths) and their description. Then just run your search queries against the db. What you are wanting to do would not be that complicated. If you do not have access to a db then you could use a text file. The code would be a little more complex though.

Jul 11th, 2002, 08:56 AM
What allida77 suggested is the most appropriate solution if it concerns a large number of photos (several dozens or more) and uses some form of serverside scripting, but if you don't have that many a client side solution might work (i.e. JavaScript); maybe JavaScript Kit (http://javascriptkit.com/cutpastejava.shtml) has something useful.
I'm pretty sure just HTML won't cut this.

Jul 11th, 2002, 08:25 PM
I think there is one (somewhere) that uses JavaScript to search through the alt attributes of images on a page... but i've looked for it and i'm not too sure where it is :confused:

happy coding :thumbsup: