Results 1 to 8 of 8

Thread: Can someone help fix my lightbox please

  1. #1
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Can someone help fix my lightbox please

    Hi I have a site which I want to use light-box function on, I have set it all up. However when I have more than 1 image for a section light-box doesn't seem to want to show the 2nd image in IE, it works on Safari but not in IE, can someone please help, its driving me mad.

    My site is here

    http://www.freshlemon.co.uk/bee001/p...elopments.html

    Click on Hawksmoor Grange

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You have a non-standard version of the lightbox script, use:

    http://www.dynamicdrive.com/dynamici...box2/index.htm
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi is there nothing I can just change in my script, as I want to keep the custom next and previous buttons that I have

    thanx

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I found the original code for lightbox++ at:

    http://blog.codefidelity.com/?page_id=7

    and compared it to yours, they are different. I also tried out their example of an image set in IE, worked fine. So, either your modifications are the problem or you didn't follow the instructions properly for creating an image set.

    Try going back to the original lightbox++ script and see if that at least gets rid of the error. If it does, perhaps there is some other way to modify the lightbox++ script to get the effect you want. Generally, the location of the next/previous buttons may be changed in the style, with no change to the script required.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi thanx for your help. Do you know how I can change lightbox++ correctly to look like the way I have it know, but working properly?

    thanx

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Save a copy of your modified script, just in case. Put back the distribution copy of lightbox++ and use the stylesheet. If you need help, put up a live demo with the distribution copy of lightbox++ so I can check it out and modify the styles on my end to see what they will look like.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi I have now uploaded the new version of Lightbox that you recommended above, could you please help me achieve the look I had before if possible?

    Thanx

    http://www.freshlemon.co.uk/bee001/p...elopments.html

    all are new lightbox files untouched by myseld downloaded from the example you gave above

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Get rid of one of the stylesheet links and use the images that you want for the next and previous buttons:

    Code:
    <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
    	
    	<script type="text/javascript" src="js/prototype.js"></script>
    <script type="text/javascript" src="js/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="js/lightbox.js"></script>
    <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
    You shouldn't need this:

    Code:
    	<script type="text/javascript">
    	function GroupDelegate(id) {
    		var objLink = document.getElementById(id);
    		Lightbox.prototype.start(objLink);
    	}
    	</script>
    You should probably also look here:

    http://www.dynamicdrive.com/forums/s...ad.php?t=18068
    Last edited by jscheuer1; 12-22-2007 at 03:04 PM. Reason: add info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •