I am currently working on a popup menu that displays different images, each with its own unique link. Here is an example of what a single menu element looks like:
<li class="button-link" data-idp="idfirst">
<s:a href='%{linkMethod("linked")}' class="original-styling blocked"><span class="sr-only">Linked ID</span><img src="LinkedImage" onerror="this.src='ErrorImg'; this.onerror=null;" alt="linked ID" /></s:a>
The CSS styles are primarily for aesthetic purposes, but there is a specific style for the 'blocked' element which includes:
.original-styling.blocked {
pointer-events: none;
cursor: default;
}
In addition, I am trying to implement a tooltip similar to the one shown in this example: https://www.w3schools.com/css/css_tooltip.asp
Unfortunately, I have been unable to get the tooltip to work when the '.blocked' class is active. Even just having the title attribute function would be a step in the right direction.
My main constraint is that I am limited to using JSP struts and Java, without the ability to incorporate jQuery or JavaScript. Any suggestions or insights would be greatly appreciated. Thank you!