Yet I haven't found a suggestion online - maybe it's too tricky? OTOH, HTML/CSS/JS is powerful and it might anyway be possible (at least I'd
think so), so I am asking here...
I have two sets of images, one optimized for low resolution (e.g., ../low/XY.png) and one with all details in a high resolution (say, ../high/XY.png).[*]
The low res images are in the <table> and displayed all together as a
matrix.
img11 img12 img13 ...
img21 img22 img23 ...
...
When hovering over the table onto XY.png I want to overlay the <table>
(not the respective small image) with the large version of XY.png. And
when moving the cursor further to the next (now hidden by the large)
small image the previous large image shall vanish and be replaced by
the large image variant of the next one at the current cursor position.
(I hope my description was not too confusing.)
So I'd want the large image temporarily displayed centered above the
<table>, and the hovering-selection of (hidden) shall images shall
still be possible. - Could that be achieved, or does the large overlay
image prevent the selection of underlying small images in the <table>?
Thanks.
Janis
[*] Note: I don't want to scale the images; scaling down the large
image set looks as bad as scaling up the small image set. That's
why I'm working with two image sets residing in two subdirectories.
On Mon, 22 Jan 2024 10:55:42 +0100, Janis Papanagnou wrote:
[...]
When hovering over the table onto XY.png I want to overlay the <table>
(not the respective small image) with the large version of XY.png. And
when moving the cursor further to the next (now hidden by the large)
small image the previous large image shall vanish and be replaced by
the large image variant of the next one at the current cursor position. >>[...]
So I'd want the large image temporarily displayed centered above the
<table>, and the hovering-selection of (hidden) shall images shall
still be possible. - Could that be achieved, or does the large overlay
image prevent the selection of underlying small images in the <table>? >>[...]
That would require JS.
One of the many ways to do it is like below.
https://output.jsbin.com/murosidoyu/1
Note that, in that design, the large images must directly follow their small image. If the HTML structure is changed, the JS code must be updated to reflect that changes.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 01:47:57 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
10 files (20,373K bytes) |
| Messages: | 264,321 |