Google scans your source code for items that look like URLs and will try to crawl them and index them, even if they are not in an
Based on the crawling that Googlebot has done on my site, Google seems to think that strings in the page source are URLs if:
- They end in a common page extension such as "html", "htm", or "php".
- They contain a slash such as "foo/bar"
- They start with "http://" or "https://"
Both the first and second in that list apply to your situtation.
<option value="mypage.html">My Page</option>
<script>var s = "mypage.html";</script>
I haven't done any specific testing with images, but I would be suprised if Googlebot did not crawl your jpg images given the markup your provided.
You might also do better with SEO with an actual link to your images. Even if Google does crawl and index the images, it is not clear that links found not in
<a href= pass pagerank the same way.