Results 1 to 5 of 5

Thread: lightbox image problems

  1. #1
    Join Date
    Mar 2011
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default lightbox image problems

    Hi,
    I am trying to add a gallery to my webpage. I want that when you click on the image it enlarges with the background black. I downloaded lightbox to achieve this however it still wont work. every time i click the image it opens in the existing page but changes the page to only show the image and nothing else.
    Any help I would really appreciate.
    Thanks

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Please add a link to your page so that we can try to help.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    A link is the most helpful. What you are describing though sounds like the associated files aren't set up so the links are just functioning as links.

    For the files http://www.huddletogether.com/projects/lightbox2/

    Then put this in the head (top of your html file before the body).

    <script type="text/javascript" src="js/prototype.js"></script>
    <script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
    <script type="text/javascript" src="js/lightbox.js"></script>
    Corrections to my coding/thoughts welcome.

  4. #4
    Join Date
    Mar 2011
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Hi
    this is the link but not sure if it will work correctly. I will copy and paste my codes just incase.
    C:\Documents and Settings\Gina\Desktop\testing lightbox.html

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>lightbox test</title>

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

    <style type="text/css">
    <!--
    body {
    background-color: #000000;
    }
    -->
    </style></head>

    <body>
    <a href="file:///C|/Documents and Settings/Gina/My Documents/W.A.S.P/image-1.jpg" rel="lightbox" title="testing"><img src="lightbox 2/images/thumb-1.jpg" /></a>

    </body>
    </html>

    Thank you

  5. #5
    Join Date
    Mar 2011
    Posts
    9
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Hi
    this is the link but not sure if it will work correctly. I will copy and paste my codes just incase.
    C:\Documents and Settings\Gina\Desktop\testing lightbox.html

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>lightbox test</title>

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

    <style type="text/css">
    <!--
    body {
    background-color: #000000;
    }
    -->
    </style></head>

    <body>
    <a href="file:///C|/Documents and Settings/Gina/My Documents/W.A.S.P/image-1.jpg" rel="lightbox" title="testing"><img src="lightbox 2/images/thumb-1.jpg" /></a>

    </body>
    </html>

    Thank you

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
  •