How can I link an external URL to an internal image and a shown tooltip?

40 مرّة مشاهدة
التخطي إلى أول رسالة غير مقروءة

heusmich

غير مقروءة،
27‏/11‏/2021، 6:32:59 م27‏/11‏/2021
إلى TiddlyWiki
Hi everyone,

I want to add an external URL link to an internal image and additionally show a tooltip when hovering with the mouse on the shown image. Is this somehow possible?
Until now I was able to add an external URL to an internal image, but I don´t know how to add the tooltip.
I used the following format:

 <a href="URL" target="_blank">[img[image.png]]</a>

I tried to add tooltip="name_of_tooltip" between URL and target but it´s not working.
If it´s not possible with this format, can anybody tell me a format or a way that I can use to get this working?

Best regards
heusmich

Eric Shulman

غير مقروءة،
27‏/11‏/2021، 8:53:06 م27‏/11‏/2021
إلى TiddlyWiki
The standard HTML syntax for adding a tooltip to a link uses the `title` attribute, like this:
```
<a href="URL" title="tooltip text" target="_blank">[img[image.png]]</a>
```
Alternatively, you can use the TW wikitext syntax for adding a tooltip to an internal image, like this:
```
<a href="URL" target="_blank">[img[tooltip text|image.png]]</a>
```
enjoy,
-e

heusmich

غير مقروءة،
28‏/11‏/2021، 1:35:05 م28‏/11‏/2021
إلى TiddlyWiki
OK, both things are working.
Thank you very much, have a nice evening!
:D

Best regards
heusmich
الرد على الكل
رد على الكاتب
إعادة توجيه
0 رسالة جديدة