Looks like you have conflicting quotes in your string. This happens all the time and can be very confusing (especially when you have one programming language inside another -- javascript inside php in this case).
There are two different ways to quote strings in php (and javascript) -- single quotes, or double quotes. What you want to do is pick one to use for php and another to use for the javascript inside the php. I personally find that using the single quotes for php and double quotes for javascript works best. So in your code, what you want is this:
Great! When you're all done with this hard work, could you do us a kindness and give it away for free? :-D
I just downloaded a couple lightboxes, one of which was broken from the start. And I just realized I will have to buy a license every time I want to use one. :-( I'm used to Lightbox being free, ya know what I mean?!
Code
Post Reply
Delete Post
You are allowed to delete your post for 5 minutes after it's posted.
There are two different ways to quote strings in php (and javascript) -- single quotes, or double quotes. What you want to do is pick one to use for php and another to use for the javascript inside the php. I personally find that using the single quotes for php and double quotes for javascript works best. So in your code, what you want is this:
(The difference is now there are double-quotes around the "gallery a")
Hope that helps!
-Jordan Lev