Community & Support

lightbox jScript not working in Drupal; works in nonDrupal page

I expect it to perform as it does on this page (centre-page, scroll down to Gallery with 3 icons in a row):
http://www.asgardforge.com/web-design2

In my Drupal pages (www.asgardforge.com/web-design/web-design-company/marketing), I've installed the same "lytebox.js" file (and also .css) in the theme folder, and added it to the theme's .info file. A test link is placed in the right-hand column (below my cameo image), called "test the GALLERY". Not working.

To add to that, I have another custom jScript I'd added to those DRUPAL pages - it captures <a> links with target _blank and sends them to a popup instead of new window or tab. That DOES work - and it's the link just below the one described above, called "test POPUP".

Since I've installed them both the same way (seen in page's source), I'm at a loss as to why the lightbox script isn't working. (Since it IS a working script...)

Comments

In the working copy the links

In the working copy the links have lyteshow[galleryAF], the non-working link has rel="lightbox" which I don't see as a valid option for lytebox.js

Right you are.

Thanks Nevets. I went from "lightbox" script to "lytebox" - the latter being built upon the former's class, but unifying 4 different interacting scripts into one. When I installed lightbox in Drupal, it wouldn't work and I got a string of errors from Firebug. Installing lytebox instead has ALMOST solved it ( I hope) - I have since changed the reference from "lightbox" to "lyteshow" (the latter script also adds optional slideshow feature) and now it runs. But brokenly.

Before plunging further into that, I just did what I should have done up-front: look for a Drupal module instead of trying to implement an "outsider". Wow, there are several choices. Looks like I'll be trying Lightbox 2 module.

nobody click here