Skip navigation
Currently Being Moderated

Making thickbox images bigger

Dec 30, 2011 11:24 AM

Tags: #cs5 #dreamweaver #css #dreamweaver_cs5 #dw

In Dreamweaver how can I make a thickbox image bigger on my screen when I preview it in a browser. It seems to be a fixed size and I want it to fill the the screen. I thought making the link image bigger would solve this but that does not work when I preview it in firefox or safari. Can I change that in the css code or do I have to change something else?

 
Replies
  • Currently Being Moderated
    Dec 30, 2011 12:47 PM   in reply to kbwalkes

    Thickbox is based on the size of the image.  I don't believe they ever added the functionality to give you this ability and as Thickbox has not been actively developed in about 3 years, I doubt it will be added.  And you should not enalrge image too much because you will end up causing pixelation and distortion.

     

    There are other solutions like Fancybox that give you this option and they have the documentation to tell you how to edit your code for a larger pop-up window surrounding a smaller image.

     

    http://fancybox.net/

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 13, 2012 9:31 PM   in reply to kbwalkes

    kbwalkes wrote:

     

    Is there a way to way to attach my problem page to this?

     

    Rather than attaching your problem page to a post in the forum, it's best if you upload your problem page to some webspace somewhere (anywhere will do) and post a link here so we can view the page in our browsers.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 14, 2012 12:02 AM   in reply to kbwalkes

    Just Google "thickbox Tutorial" or something.  I bet you get plenty to choose from.

     

    Most light box clones have their own install instructions. 

     

    Martin

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 24, 2012 10:37 AM   in reply to kbwalkes

    Thickbox is no longer being developed. 

     

    I am using FancyBox on this demo page. View source to see the code. 

    http://alt-web.com/GALLERY/Photo_Gallery.html

     

    Don't forget to upload the jQuery scripts to your server.   I  keep the jQuery plugins in a folder called Scripts. 

    The link paths and function code looks like this and it's inserted between the document's <head> and </head> tags:

     

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
    
    <script type="text/javascript" src="Scripts/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
    
    <script type="text/javascript" src="Scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    <link rel="stylesheet" type="text/css" href="Scripts/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
    
    <!--Calls Slideshow Transitions -->
    <script type="text/javascript">
    $(document).ready(function() {
         $("a[rel=group]").fancybox({
                   'transitionIn'     : 'elastic',
                   'transitionOut'     : 'elastic',
                   'speedIn' : 400, 
                   'speedOut' : 600,
                   'titlePosition'     : 'over',
                   'titleFormat'     : function(title, currentArray, currentIndex, currentOpts) {
                             return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? '   ' + title : '') + '</span>';
                        }
                   });
                   });
    </script>
    
    
    

     

     

    The code for images looks like this and is inserted between the <body> and </body> tags.  I keep photos in a folder called Images.

     

    <!--BEGIN IMAGE GALLERY -->
    <div class="fancybox">
    <a rel="group" href="Images/1_big.jpg" title="optional captions"><img src="Images/1_small.jpg" alt="image 1" width="75" height="75" border="0" /></a>
    <a rel="group" href="Images/2_big.jpg" title="optional captions"><img src="Images/2_small.jpg" alt="image 2" width="75" height="75" border="0"  /></a>
    <a rel="group" href="Images/3_big.jpg" title="optional captions "><img src="Images/3_small.jpg" alt="image 3" width="75" height="75" border="0"  /></a>
    
    <!--END IMAGE GALLERY --> </div>
    
    

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

    http://twitter.com/altweb

     


     
    |
    Mark as:
  • Currently Being Moderated
    Feb 25, 2012 2:51 PM   in reply to kbwalkes

    Path problem.  Here is where your code is telling the page to look for fancybox.js but it's not there.

    http://www.davidjveres.com/source/jquery.fancybox.js

     

    Look on your remote site and tell us which folder(s) your scripts are in.

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

    http://twitter.com/altweb

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 25, 2012 4:37 PM   in reply to kbwalkes

    OK so your scripts are located in the scripts folder.

    http://www.davidjveres.com/scripts/jquery.fancybox.js

     

    Not the source folder

    http://www.davidjveres.com/source/jquery.fancybox.js

     

    Open your page in code view and change source to scripts.  Got it?

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

    http://twitter.com/altweb

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 26, 2012 10:09 AM   in reply to kbwalkes

    What's the URL to your revised test page?

    Where are your remote srcipts located now?

     

     

     

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

    http://twitter.com/altweb

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 27, 2012 5:04 PM   in reply to kbwalkes

    You're making progress.   But these files are still missing.

    <script type="text/javascript" src="Scripts/jquery.fancybox-1.3.4.pack.js"></script>

    <link rel="stylesheet" type="text/css" href="Scripts/jquery.fancybox-1.3.4.css" media="screen" />

     

    Click on your Scripts folder in the DW files panel.  Click on the UP ARROW.

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

    http://twitter.com/altweb

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 29, 2012 5:32 AM   in reply to kbwalkes

    I wonder if this helps.

     

    I have rebuilt your page and added fancybox on my test site.

     

    It is very different to your pages but it gets the lightbox gallery going.

     

    I have laid out the thumbnails all the same size,  It means that they are poor quality now but this for me is much neater that trying to juggle very different sized image in a thumb gallery.  I think that is OK because it is a kind of teaser but that's me.

     

    Anway, I'm not always at the computer but if you want to post some questions about it, please do.

     

    Martin

     

    martcol.co.uk/test/artist.html

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 2, 2012 2:33 PM   in reply to kbwalkes

    If you are interested, I did an artist's site a few years ago and it's riddled with lightbox galleries.  It's very regular which suited me and the him.

     

    andrewjamesartist.co.uk

     

    There are a lot of images there so I think it lends itself to using uniform size on the galleries.  Your images were are all very different ratios.  I can see that staying true to that might have a more orgnic feel but as I say, I think a thumbnail gallery looks neater with cropped thumbs to the same size.

     

    Horses for courses.

     

    Martin

     
    |
    Mark as:
  • Currently Being Moderated
    May 7, 2012 3:59 AM   in reply to kbwalkes

    I would have hand-coded it in Dreamweaver with a fair amount of cutting and pasting.

    kbwalkes wrote:

     

    How did you set up the properties for each <div class="galleryThumb">, was it around line 179 or futher down from line 275 down?

     

    I don't really understand that question.  My approach to the high-tech world of precision coding is erm... trial and error or, the Tweak and Test model.  That's how I do it.  the actual structure of the thumbnail gallery is relatively easy.  The difficult part for me in every lightbox gallery I have implemented is the image tag with it's alt text and title attribute.

     

    Martin

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points