PDA

Click to See Complete Forum and Search --> : Lightbox (javascript) will be the death of me...


CkretAjint
07-30-2008, 01:32 AM
I am having MASSIVE issues getting Lightbox2 (http://www.huddletogether.com/projects/lightbox2/) to work for me, and I am quite stressed about it! :mad:

I just started learning HTMl and CSS and am in the process of building myself a fancy site (yay). So for my portfolio section I was just going to use lightbox. Not original, I know.... but it "works" (NOT!!!!!) I downloaded the files, and dropped them on the development server AS IS and it won't load for PCs (Firefox or IE), or MACs (IE). ONLY Firefox and safari on a Mac works correctly. Everything else opens in a new window.

Can Anyone help? please, O please... I am so flustered with this. and I am sure it is something STUPID and SIMPLE!

(I know it's ugly, I don't have my CSS file loaded to make sure that wasn't it messing it up.)

File:
http://c2labs.com/~maxson/p o r t f o l i o .html

Javascript (as is):
http://c2labs.com/~maxson/js/b u i l d e r .js
http://c2labs.com/~maxson/js/e f f e c t s .js
http://c2labs.com/~maxson/js/l i g h t b o x .js
http://c2labs.com/~maxson/js/p r o t o t y p e .js
http://c2labs.com/~maxson/js/s c r i p t a c u l o u s .js

NTLemon
07-30-2008, 01:51 AM
I've used Lightbox and Lytebox on a few galleries and the only thing I noticed was that depending on where the js css files were located sometimes it wouldn't work for me. Unfortunately I don't know much javascript beyond some rudimentary coding so I ended up putting them in the same directory as the galleries page and it worked for me.

At the time I was running it through an Iframe though so that could have been affecting it.

Two-Toe Tom
07-30-2008, 02:03 AM
you're getting a syntax error here:

<body onload="MM_preloadImages(?/images/menu_on.gif?)?;initLightbox()">

(found in 1 second using firebug (http://getfirebug.com/) :p)

Two-Toe Tom
07-30-2008, 02:11 AM
also something to think about, most lightboxes really suck if you want to browse through someone's work quickly (cause the transistions are so slow)

CkretAjint
07-30-2008, 02:50 AM
Good point TTT. I was just trying to avoid single pages, causing the viewer to flip through 1-by-1.

Made those edits, still no workie.

I also DLed firebug! :D

Two-Toe Tom
07-30-2008, 02:53 AM
Good point TTT. I was just trying to avoid single pages, causing the viewer to flip through 1-by-1.

Made those edits, still no workie.

I also DLed firebug! :D

really? it's working for me now...

CkretAjint
07-30-2008, 02:57 AM
What are you using?

Two-Toe Tom
07-30-2008, 03:03 AM
works in ie7 and firefox 2 for me

NTLemon
07-30-2008, 03:06 AM
works for me now too. ie7 and ff3 on windows.

CkretAjint
07-30-2008, 03:10 AM
*stress lifting from shoulders* :)

Thanks for the confirmation guys!

vtwin_gary
07-30-2008, 03:23 AM
also something to think about, most lightboxes really suck if you want to browse through someone's work quickly (cause the transistions are so slow)


i really like the way lightbox looks but this was a concern for me as well. any alternatives that may be similar in style

Two-Toe Tom
07-30-2008, 02:31 PM
i really like the way lightbox looks but this was a concern for me as well. any alternatives that may be similar in style

hmm, don't know any offhand, but you could try to edit existing lightboxes to make them transition a bit faster.

CkretAjint
07-30-2008, 02:39 PM
Gary, there are a few out there that claim to be faster. Although I don't have any experience with them...

Check out this link (http://www.smashingmagazine.com/2007/05/18/30-best-solutions-for-image-galleries-slideshows-lightboxes/) for other options

jm1786
08-01-2008, 01:34 AM
I use FancyZoom. It is really easy to set up and use.

http://www.cabel.name/2008/02/fancyzoom-10.html

It doesn't do "galleries" in terms of once you open a picture and it pops up you can't select next or back to scroll through a series. but it's transitions are so fast that you can easily select one, close it by clicking on the image again and choose another one.