473,320 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Search engine on single page

I got a singe page where is a lot of text. Visitors usually looks a
one special text from that page, but it's so large-sized that they
will be frustrated. So, I need a javascript code which includes search
field where visitor can specify that single or multiple word that one
is looking for from the page. And when visitor press a search button,
javascript will highlight the correct word(s) from that page... Did
you understand? I know that somewhere on the internet is the code i'm
looking for, but i cannot find it. Thanks!

Sam
Jul 23 '05 #1
4 1351
Ivo
"Sam Smarty" wrote
I got a singe page where is a lot of text. Visitors usually looks a
one special text from that page, but it's so large-sized that they
will be frustrated. So, I need a javascript code which includes search
field where visitor can specify that single or multiple word that one
is looking for from the page. And when visitor press a search button,
javascript will highlight the correct word(s) from that page... Did
you understand? I know that somewhere on the internet is the code i'm
looking for, but i cannot find it. Thanks!

Sam


Do you mean something like
<URL: http://4umi.com/code/highlighttext.htm >
The search is for all entered words individually by default but optionally
for the exact phrase. Case-sensitivity is another option.
Ivo
Jul 23 '05 #2
Ivo <no@thank.you> wrote:
Do you mean something like
<URL: http://4umi.com/code/highlighttext.htm >
The search is for all entered words individually by default but optionally
for the exact phrase. Case-sensitivity is another option.


nice !
but ...
be care...
if i find ' ' (blank space only) or ' o' (blank space first then o) ...

boum !

--
@@@@@
E -00 comme on est very beaux dis !
' `) /
|\_ =="
Jul 23 '05 #3
Sam Smarty wrote:
I got a singe page where is a lot of text. Visitors usually looks a
one special text from that page, but it's so large-sized that they
will be frustrated.


Edit > Find in many browsers.

Mozilla has the funky Find-As-You-Type feature which can be activated for
non-link text by typing '/'.

(I have a thing about needlessly duplicating built in browser functionality
with JavaScript)

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 23 '05 #4
That code seemed nice, but is there any other solutions available?

Sam
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: R. Rajesh Jeba Anbiah | last post by:
Q: Is PHP search engine friendly? Q: Will search engine spiders crawl my PHP pages? A: Spiders should crawl anything provided they're accessible. Since, nowadays most of the websites are been...
11
by: Petre Huile | last post by:
I have designed a site for a client, but they have hired an internet marketing person to incrase their search engine ranking and traffic. He wants to put extra-large fonts on every page which will...
5
by: George | last post by:
Hi, Anyone has the background for explaining? I have made a search on my name and I have got a link to another search engine. The link's title was the search phrase for the other search engine...
8
by: Craig Cockburn | last post by:
Hi I'm aware of the use of robots.txt and the use of <META NAME="ROBOTS" CONTENT="index,follow"> However, what would be more useful is to be able to control within a page which elements of...
0
by: Mark Goldin | last post by:
I am working on a search engine. An aspx page shows some data. The user will type something in and click a button to search. I want to create a server solution for the search engine. So the search...
5
by: Sam | last post by:
Does anyone know of a way to create a search page under ASP.NET 2.0? I have started out by configuring a catalog in Index Server, registering the aspx, ascx extensions in the registry to allow...
4
by: MDW | last post by:
Posted this on another board, but evidently it was off-topic there...hope you folks will be able to provide some guidance. I've been working on a Web site for a business (my first non-personal...
2
by: Bishop | last post by:
The default gridview paging links are JavaScript and it looks like there is no way for search engines to follow them. Any ideas on what I can do to allow search engines to follow the links so they...
1
by: cglewis03 | last post by:
Hello, I am trying to build a search form with several different options to choose from. Currently it is set up to open within the same window if a single option is selected and open within a...
7
by: =?Utf-8?B?SklNLkgu?= | last post by:
How to get search engines crawl data I have a web application that uses user controls and pulls data directly from database and shows it to users in the internet. So there is not html that has the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.