On 22.01.2024 16:22, JJ wrote:
> 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.
This is okay.
Yes, like the behavior of that page is what I also want.
I'll have to study the details what's going on there...
It seems it's a bit different than my page; just two images,
small/large, that get colored, it seems, but more complex a
logic. Hmm..
I suppose I can ignore the google code, and also the "jsbin"
stuff. (Removing it seems to not change behavior at least.)
And, IIUC, the CSS definition "image-table .red { ... }"
works on both image classes, "small red" and "large red" ?
And "function chkCoord(data)" is what makes the algorithm
find the correct small image to act on.
(BTW, my editor syntax highlighting doesn't seem to know all
details (like "object-fit: contain;"), but it's necessary
it seems.)
>
> 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.
Yeah. I think I'll have to take that just as an example to
learn the mechanisms. It looks quite complex for my untrained
eye, and I'll try to create something simpler if possible. :-)
Thanks!
Janis