Results 1 to 5 of 5

Thread: Lightbox opens in new window no buttons or effects

  1. #1
    Join Date
    Mar 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Lightbox opens in new window no buttons or effects

    1) Script Title: Lightbox image viewer V2.04

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...box2/index.htm

    3) Describe problem: when I click on the link in front page the enlarged image opens in windows fax viewer, if i use preview in browser IE7 it opens in the top left of a new window with no buttons to close.

    I have unzipped the files to a folder called light at the same level as the page.html.

    File structure

    Cartmel-images/light (contains all unzipped files)
    /photogallery
    /index.html
    /new_page_1

    I have made no changes to any other files.

    At present this is in a simple form as I am having trouble getting it to work, and need it working prior to complete my web.

    HTML in page


    <html>

    <head>
    <script type="text/javascript" src="/light/js/prototype.js"></script>
    <script type="text/javascript" src="/light/js/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="/light/js/lightbox.js"></script>
    <link rel="stylesheet" href="/light/css/lightbox.css" type="text/css" media="screen" />

    </head>

    <body>


    <p align="left"><a href="light/images/castle.jpg" rel="lightbox" title="Spring">
    <img border="0" src="light/images/thumb-1.jpg" width="100" height="101"></a>
    <a href="light/images/trial.jpg" rel="lightbox" title="Horses" >
    <img border="0" src="light/images/mycat.jpg" width="100" height="70"></a>

    </body>

    </html>

    Please help this has been doing my head in for days.

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    have you tried it online? Lightbox won't work from within FrontPage. "Preview in browser" won't cut it.

  3. #3
    Join Date
    Mar 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Yes

    Yes tried it on web and got the same problem.

  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

    Sounds like either a conflict with another script, or one or more of the resource files is not where your setup has led the page to look for it.

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

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

  5. #5
    Join Date
    Mar 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with next and prev buttons

    Thanks, I have manged to get lightbox working.

    Is it possible to get the next and prev buttons to appear next to the close button on the bottom of the image.

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
  •