Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #37875
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2019-11-26 04:23 -0800 |
| References | <41787270-f2cc-4fc0-9ea3-d2d8918d7100@googlegroups.com> |
| Message-ID | <e5886f70-923d-4df5-ba6d-e34a42316723@googlegroups.com> (permalink) |
| Subject | Re: Attach search tags to web images? |
| From | dr.j.r.stockton@gmail.com |
On Tuesday, 26 November 2019 08:00:25 UTC, RG III wrote: > When users search for keywords on an HTML document, the browser obviously only scans text for those keywords. But is it somehow possible to attach keywords to <img> elements that the browser can include in keyword searches? If not, are there any other workarounds that might help browser keyword searches scroll down to an <img> element? To include, in a browser Ctrl-F search, character-text which is within an image element, one must persuade the browser-makers to include that feature. So try using the feedback already provided within some browsers, and be patient. You could, however, place your image elements within text-container elements containing the text you want to be findable. If you make that text font-size 1 pt white-on-white, few users will see it there. If you are writing a page full of images, and don't insist on Ctrl-F, you can make your own Search Element, maybe position absolute top-right-corner, containing an Input type=text and an adjacent Button, which spiders all the IMG elements (or a suitable property of document.body) in whatever manner you choose. I know that I have one page in which script rewrites the Body before display, so all sorts of searches must be possible. -- (c) John Stockton, near London, UK. Using Google Groups. | Mail: J.R.""""""""@physics.org - or as Reply-To, if any. |
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Attach search tags to web images? RG III <mob.rrr.3@gmail.com> - 2019-11-26 00:00 -0800
Re: Attach search tags to web images? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-11-26 11:29 +0100
Re: Attach search tags to web images? RG III <mob.rrr.3@gmail.com> - 2019-11-26 02:58 -0800
Re: Attach search tags to web images? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-11-26 12:57 +0100
Re: Attach search tags to web images? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-11-26 13:06 +0100
Re: Attach search tags to web images? Julio Di Egidio <julio@diegidio.name> - 2019-11-26 04:17 -0800
Re: Attach search tags to web images? dr.j.r.stockton@gmail.com - 2019-11-26 04:23 -0800
Re: Attach search tags to web images? dr.j.r.stockton@gmail.com - 2019-11-26 04:37 -0800
Re: Attach search tags to web images? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2019-11-27 13:29 -0700
Re: Attach search tags to web images? Arno Welzel <usenet@arnowelzel.de> - 2019-11-28 12:13 +0100
csiph-web