How do I add a link to a Title/Caption in LightBox 2 Gallery - lightbox2

I would like to add a link to a title/Caption on the last image in of a Lightbox 2 gallery to point to the next physical page of this particular gallery.
I tried the code below but it didn't work and only displayed the link code above the image in the page.
<td width="177" valign="top"><img src="images/galleries/bath/thumbs/21t.jpg" alt="Remodel Bathroom" width="178" height="123" border="0" /></td>
If you go to http://revdesigndev.com/rc/gallery-bathroom-update.html and click on the last image in the gallery you will see the caption I would like to link from.
Any way to do this?

I can't claim credit for this one, but the answer is already on StackOverflow. You need to edit the if statement as Zenpoy suggests.
turning caption into a link doesn't work in Lightbox 2.51

Related

linking two articles using an image

I am trying to link an image within an article to another article but when clicked all I get is a larger version of the image opening top of page. Tried amending html img src, used JCE editor to create links, created a hidden menu item and copied syntax, all to no avail. Any ideas please?
Thanks
I think what you are trying to do is this:
<img src="http://placehold.it/350x150">
Just wrap your image in an anchor tag with it pointing to the site you want to go to.

cakephp paginate second page does not display icons

My main page displays a list of post, with an icon at the beginning of each popst.
When I click next page (paginator), all lines are displayed without icons. There is an square insstead of the icons.
Thank you for your help
I'm linking the icon in the following way
<img src="webroot\img\cake.icon.png" alt="Smiley face" height="42" width="42">
webroot\img\cake.icon.png appears to be a server path, not a URL path, which is what's needed.
Try changing the image's src attribute to /img/cake.icon.png or, if your CakePHP installation is in a subdirectory, to /subdir/img/cake.icon.png

IE7 display wrong ALT-tag when image is wrapped in a link?

I have a question about IE7 and how it ”interprets” title and alt HTML tags.
I’ve this constalation on a site:
<a title="My Name" alt=" My Name " class="profile_image" href="/members/my-ane">
<img rc="/uploads/sfguarduserprofile/229/11066_60x60_3f9ee652879b2e3209698830c9ff1583.jpeg" alt="11066_60x60_3f9ee652879b2e3209698830c9ff1583">
</a>
Now, when hover with my cursor in IE 8+, Firefox, Chrome, Safari, you-name-it it shows “My Name” in the alt-box.
But when heading over to IE7, it shows: 11066_60x60_3f9ee652879b2e3209698830c9ff1583 which would be the image alt tag.
I have the possibility to change the alt text on the image but if there is any solution other than that, I would very much appreciate it so I don’t use too much time on a relatively small problem in a single browser.
And are there any explanation why IE7 can’t figure this out oppose to its bigger brothers, IE8, 9+ ??
Sincere
- Mestika
Technically, the alt attribute should serve as alternative content in case the image doesn't load. In your case, there is no contextual need for an alt tag, as a user that cannot view the profile image does not need to see the image to understand the rest of the content.
The image should have an empty alt attribute per the WHATWG.

Using lightbox2 to display text instead of images

I am trying to use lightbox2 to display a block of text after clicking a heading element:
something like
<h3>name</h3>
I have used lightbox for images with captions but this time I would like the caption to come up without an associated image after clicking a name on a webpage.
Thanks for any replies.
I don't think that lightbox2 is made for such a thing, why don't you try http://fancybox.net/ this one works 100%.

Animated GIFs in Lotus Notes

I have built a HTML email newsletter containing an animated GIF Christmas Ecard which is being sent to all employees of a company who exclusively use Lotus Notes.
The problem I'm having is that they are receiving the email fine, but the GIF isn't animating.
Any idea if there's a way to get this working?
You could ensure that the first frame of the gif looks nice so that the animation is an 'added benefit' rather than a requirement.
That they had one come through last year seems amazing to me. But if that is actually the truth it might have had something to do with the file size being too large. You should try to keep them under 40kb
Click Create in the toolbar above the email message. Click on the Picture option and then choose GIF from the pull-down menu. Go to the folder location of the animated GIF that you want to embed in the email. Click and highlight the file. Click the Import button to add the animated GIF.

Resources