artlantis / easybox

Automatically exported from code.google.com/p/easybox
0 stars 0 forks source link

anchors in the caption #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I want to include an anchor in the caption to link to the User profile

Problem : 
When you hover over a picture the alt will show the HTML CODE .
e.g : <a href=\"code.google.com/p/easybox/issues\"> ......... 

What version of the product are you using? On what operating system?
easybox 1.3 / Windows 7 

What should i do to include an anchor in the caption without showing it on 
hover ?

Original issue reported on code.google.com by moth...@gmail.com on 25 Feb 2013 at 4:52

GoogleCodeExporter commented 9 years ago
I solved it by making some changes in the javascript . 

In easybox.js
I Changed a.title to a.rel and then used rel for captions with anchors . 

E.g. 

<a.   Title="image1". rel=" <a href="www.google.com" class="lighbox"> click me 
</a>" </a>

On hover you'll see "image1" 
But when you click on the picture the lightbox will popup and the caption will 
show a hyper link . 

With this you can avoid displaying your code on hover 

Original comment by moth...@gmail.com on 26 Feb 2013 at 7:48

GoogleCodeExporter commented 9 years ago
Sorry the class=lightbox should be next to the title :) 

Original comment by moth...@gmail.com on 26 Feb 2013 at 7:49