タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

jQueryと検索に関するlockcoleのブックマーク (1)

  • Dossy’s Blog: Client-side query term highlighting demo using jQuery

    Client-side query term highlighting demo using jQuery Yesterday, the subject of “static vs. dynamic websites” came up and an example of “something that requires dynamic page assembly” was search query term highlighting. In other words, using the HTTP Referer header (yes, it’s misspelled but that’s how it is in the spec) header and parsing it and if it’s a click-through from a search engine results

    lockcole
    lockcole 2007/06/14
    Referrerのクエリ文字列を解析して,ページ内の要素それぞれにパターンマッチをかけて一致部分をspanタグで囲んでハイライトさせるという方法。jQueryならではの簡潔なコード。
  • 1