Add Search Terms to website

Discussion in 'HTML & Website Design' started by peaches, Jan 24, 2007.

  1. #1
    Hey guys, I was wanting to know if someone could help me with this question.

    Lets say someone searches for blue widgets, how can I have it on my website where there is text that changes to what ever the search query is...whether it be blue widgets, green widgets, big widgets, etc

    Thanks!
     
    peaches, Jan 24, 2007 IP
  2. intothemiddle

    intothemiddle Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You'd want to use a combination of a server side language based on your content along with something akin to simple CSS methods:
    http://www.netregistry.com.au/news/...n-Absolute-Beginners-Guide-Part-33/Page2.html

    Unsure if there's a client side version that will do the whole thing for you that I've come across myself.

    In ASP I'd do something like:
    mycontentvar = Replace(mycontentvar, "blue cheese", "<span class='highlight' id='highlight'>blue cheese</span>")

    And then put some styling in to your CSS etc.
     
    intothemiddle, Jan 25, 2007 IP
  3. peaches

    peaches Guest

    Messages:
    181
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ahh okay, thank you very much!
     
    peaches, Jan 25, 2007 IP