Member
Member
ctdlg   2020-04-10, 16:34
#1
Hello,

How can I print image description over thumbs (album page) when mouse stops moving over them ?
Using
[code]a href="<?php echo html_encode(getImageURL()); ?>" title="<?php printImageDesc();
[/code]in album.php, while image loop, line 55
prints source code of image descriptions over my thumbs !

Thanks in advance.
Administrator
Administrator
fretzl   2020-04-10, 18:44
#2
You could try:
```php
<a href="<?php echo html_encode(getImageURL()); ?>" title="<?php echo strip_tags(getImageDesc()); ?>">
```
Administrator
Administrator
acrylian   2020-04-10, 20:26
#3
On all browser the title tag is displayed as a tooltip if you keep the cursor a while on it. If you need something different, you need to use JS.
Member
Member
ctdlg   2020-04-11, 06:13
#4
Thank you fretzl and acrylian for your help.

I use a copy of album.php, named album-stereo.php using fretzl code that does the job : I apply this template to all stereoscopic pictures .
The tooltip displays the description of the 3D picture.
There is no description using stereo photo maker (html5 web stereo viewer tool )

I do use your standard tooltip for all other thumbs !
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.