HTML in Lightbox-v2

Hello:

I’ve set up a number of galleries on our site (http://www.dzynlab.com) using Lightbox v2 and would like suggestions on how to (if possible) add HTML links in either the title or description fields.


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As far as I know, Lightbox won’t let you do that, but Thickbox does.
Thickbox lets you put just about anything in the “box” – forms,
HTML, whatever.

Walter

On Nov 29, 2007, at 9:37 AM, James Wilkinson wrote:

Hello:

I’ve set up a number of galleries on our site (http://
www.dzynlab.com) using Lightbox v2 and would like suggestions on
how to (if possible) add HTML links in either the title or
description fields.


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

As far as the caption/title goes:

Regardless of the mothed used below, you are going to need to manually create the syntax for the html link.

You should be able to enter the stadard <a href=‘xxx’>XXX</a> as your title. As long as the text is quoted, this should be kosher. The script may still balk at this, and you may need to encode your text string instead as noted below.

The script should properly translate encoded html into real html.
ie:
it should treat ‘& lt;’ (I added a space after the ampersand to prevent formating of the text) as a proper ‘<’ (left chevron), etc…
& lt; = <,
& gt; = >,
& quot; = "
(remove inserted space in each)

You will need to encode both chevrons and double quotes, single quotes, and all other text should make it through fine.

Or, if you are using one of my Lightbox Actions, then you can simply type the html as you need directly into the ‘caption’ field. The Action will take care of making any necessary changes to the text…


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

For those of us that are code deficient, I have come up with a bit of a work around…
In a separate html box I typed the word “website”. Then made it a hyperlink as usual - in this example I used the Softpress URL. Then I viewed it in a Safari window (File/Preview in Browser). Then, in Safari, viewed the source code (View/View Source) Then, found the FW generated code:

website

Then copied it and pasted it into the Caption field of the Action (moo: lightbox/slimbox)

Done. Worked perfectly.


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options