Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    3
    Member #
    19988
    Hi all,
    I am using the lightbox2 to ovelay the images on my site, as described on here:
    http://www.huddletogether.com/projec...box2/#overview

    I cant for the life of me understand why this will not work on my website. Ive tried and checked absolutely everything to ensure i haven't missed anything.

    Can't anyone please help!

    Here is the page it is not working on:
    http://www.testingcanvas.com/gallery.html

    Here is the coding i am using:

    <link rel="shortcut icon" type="image/ico" href="/images/favicon.gif" />
    <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

    <script src="js/prototype.js" type="text/javascript"></script>
    <script src="js/scriptaculous.js?load=effects" type="text/javascript"></script>
    <script src="js/lightbox.js" type="text/javascript"></script>

    <a href="images/gallery/04-large.gif" rel="lightbox[gallery]" title="Grilled chicken breast fillet"><img src="images/gallery/04-small.gif" border="0" width="120" height="89" /></a>

    Thanks

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    Your <body> tag is now like this ...

    It should be like this ...

    <body initLightbox()>

    That initializes Lightbox.


  4. #3
    Junior Member
    Join Date
    Sep 2009
    Posts
    3
    Member #
    19988
    Hi there,
    Many many thanks for your reply.
    I have added the function call as stated- but this has made no difference.

    http://www.testingcanvas.com/gallery.html

    Thanks

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    It's working fine for me.
    What's missing is the "loading" animated .gif image.
    Everything else works.

    The reason you don't think it's working is because you're not waiting long enough.
    You don't see the loading graphic, but if you sit a few seconds more, you'll see it works.

    It's looking for the loading gif image here:
    images/loading.gif

    But it doesn't exist, or you never created that directory.

    I tested with IE8 and FF ... both work fine (except the loading graphic is blank).


  6. #5
    Junior Member
    Join Date
    Sep 2009
    Posts
    3
    Member #
    19988
    fantastic - im not uite sure whats happened but i added the javascript file 'effects.js' and the animation has started to work!
    Hurray.

    Thanks for spotting i was missing the 'loading.gif' - ive now added this.

    Superb - so thanks once again!

    Regards


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:13 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com