<a href="link.html" title="Titletext">
...is the code.
I need to use the title
attribute because of slimbox, but I want to hide the title-text that shows up when hovering the mouse over the link.
Any ideas?
<a href="link.html" title="Titletext">
...is the code.
I need to use the title
attribute because of slimbox, but I want to hide the title-text that shows up when hovering the mouse over the link.
Any ideas?
jQuery solution - this should be straight forward:
Supposing you are using an image tag in the a tag, you can just use an alternative title for the image (even a space) and that will overwrite the title of the link when you hover over it.
How about a nice simple:
(Better, put something actually useful in the nested title.)
This is my jQuery solution, it does everything you need and keep the correct usage of the title attribute. Simply change the selector according to your needs.
No guarantees but depending on how Slimbox works you may be able to include the title then use something like jQuery to remove it a few seconds after page load. Assuming Slimbox indexes the Title attribute and stores it somewhere after reading it in, you may be able to safely remove it after this happens.
if you are using jquery, you could do following
(haven't tested it though)