When using highlighting, is it possible to highlight an image with a border if the search term was found the the ALT text of an image? As far as I can tell highlighting only works with text on the page.
A smiple idea would be if the code was:
Searching for "beach" would highlight the image like:
Of course my situation is a bit more complex. My code pops up the image with a caption when clicked.
It would start as:
And need to rewrite as:
I'm sure there are many ways to highlight an image. I'm just using "style" as an example.
A smiple idea would be if the code was:
Code:
<a href="#"> <img src="image-15.jpg" alt="On the beach with friends"> </a>
Code:
<a href="#"> <img style="border:5px solid #ffff00;" src="image-15.jpg" alt="On the beach with friends"> </a>
It would start as:
Code:
<a href="#"> <img src="image-15.jpg" title="Click to enlarge"> </a> <div class="caption">On the beach with friendso</div>
Code:
<a href="#"> <img style="border:5px solid #ffff00;" src="image-15.jpg" title="Click to enlarge"> </a> <div class="caption">On the beach with friendso</div>
Comment