How place a link below a picture that is displayed using fancybox (jquery)? -
In the first picture of my website (two people), when you click on it, a url address shows " The title "used the item is an easy way to do this but instead of putting a link?
Code:
& lt; Div class = "pusher" & gt; & Lt; H3 & gt; & Lt ;? Php Echo L ('Showcase 1_H3'); ? & Gt; & Lt; / H3 & gt; & Lt; P & gt; & Lt ;? Php echo l ('showcase1_p'); ? & Gt; & Lt; / P & gt; & Lt; Div class = "pic" & gt; & Lt; An id = "showcase1" heading = "studyatbest.com" href = "picture / showcase 1 page" & gt; & Lt; IMG src = "picture / showcase 1t.png" /> & Lt; / A & gt; & Lt; / Div & gt; & Lt; / Div & gt;
Yes, you need to use title format Is: option.
Function headlink (title, current, current index, currentopts) {return '& lt; Div id = "title-link" & gt; & Lt; Span & gt; & Lt; A href = "http: // '+ title +'" & gt; '+ (& Amp; title.length? & Lt; b & gt;' + title + '& lt; / b & gt;': '') + '& lt; / A & gt; & Lt; / Span & gt; & Lt; / Div & gt; ';; } $ ("A # fancy link"). Fancybox ({'titlePosition': 'inside', 'title format': title link});
Then in your markup:
& lt; An id = "fancyLink" href = "./ img.jpg" title = "www.google com" & gt; & Lt; Img alt = "image link" src = "./img.jpg" /> & Lt; / A & gt;
I hope this meets your needs.
Comments
Post a Comment