Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2002
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Internal Search engine for image files


    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.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 has something useful.
    I'm pretty sure just HTML won't cut this.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

    happy coding
    redhead


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •