But if you can't use php how do you expect to read from the text file? No client side language can do this on a website unless its an intranet. I guess you could have a flash drop down but then that can get messy.
||||If you are getting paid to do a job, don't ask for help on it!||||
My site is already happily indexed by google, not a problem.
Developing the search using a custom google search maybe an option, but a rough one?
I think I need to have access to PHP or SQL to do anything decent, which I don't have at the moment.
I would suggest using a database - it's the best way to categorise and tag each game you want to search on.
The best way to do this would be to add Title, Description, Summary and Category fields to your DB table and then create SQL to search though the text in every field for each word that was search upon.
You could even add a relevancy score to your SQL and order by this result descending so that the more instances of a particualr word that were found in the DB fields, the higher the relevancy (allowing the most likely game they were looking for to be returned first).
You have two games: -
1). TITLE: Straw Hats Samurai, DESCRIPTION: A fighting game involving Samurais
2). TITLE: Last Samurai, DESCRIPTION: Last Sumarai game
The user searches for "Samurai fighting"
The keyword appears in BOTH the Title and the Description field for game 1, but only twice in Title and Description for game 2, therefore, your SQL would return game 1 first and then game 2. Coupled with the fact that both search words appear in Title and Description for game 1 whereas only 1 of the search keywords appears in the DB fields for game 2.
I hope that explanation was clear? This is the best way to implement search functionality to any site as it returns the most relevant result first which is more likely to be what they were searching for in the first place.