| RTapo.com | Site Last updated 12/30/2011 |
| Home > concentricPreviewGallery |
|
This Perl module generates html image galleries like the one shown below, in Table 1. It creates tables that have a large cell in the center, which is bordered along it's perimeter by proportionate smaller cells. When a small cell (thumbnail) is clicked on, the image in it appears in the center cell. This page serves as the documentation for Modules::concentricPreviewGallery, and should provide enough information to use the module in a perl script. You can see the module perform in a demo cgi, and download the module source in a zip file (MD5: A38CB4F165136B29EBF2D9800B6B7639 cpg.zip).
|
--- Document Index ---
|
||||||||||||||||||||||||
use Modules::concentricPreviewGallery; my $cpg = Modules::concentricPreviewGallery->new( images_directory => "root/path/to/images", images_directory_url => "http://www.yourdomain.com/images" ); $cpg->make_gallery; while (my $gallery_table = $cpg->next_gallery) { # do something with table in $gallery_table . . . }
use Modules::concentricPreviewGallery; my $cpg = Modules::concentricPreviewGallery->new( images_directory => "root/path/to/images", images_directory_url => "http://www.yourdomain.com/images" ); my @gallery_tables = $cpg->make_gallery; foreach my $gallery_table(@gallery_tables) { # do something with table in $gallery_table . . . }
my $cpg = Modules::concentricPreviewGallery->new;
my $cpg = Modules::concentricPreviewGallery->new( images_directory => "root/path/to/images", images_directory_url => "http://www.yourdomain.com/images" );
my $cpg = Modules::concentricPreviewGallery->new( images_directory => "root/path/to/images/*.gif", images_directory_url => "http://www.yourdomain.com/images" );
my $cpg = Modules::concentricPreviewGallery->new( images_directory_url => "http://www.yourdomain.com/images", images_array => [ "root/path/to/images/img1.jpg", "root/path/to/images/img2.jpg", "root/path/to/images/img3.jpg", ... "root/path/to/images/imgN.jpg" ] );
Note: images_directory key not required in Listing 6 since local path information is in the array referenced by images_array.
my $cpg = Modules::concentricPreviewGallery->new( images_directory => "root/path/to/images", images_directory_url => "http://www.yourdomain.com/images" images_array => [ "img1.jpg", "img2.jpg", "img3.jpg", ... "imgN.jpg" ] );
my $cpg = Modules::concentricPreviewGallery->new(%config);
my $cpg = Modules::concentricPreviewGallery->new(\%config);
Note: The new method returns a code reference to an anonymous subroutine.
valid args: 'html', 'style'
Description:
valid args: integer
Description:
valid args: integer
Description:
valid args: '100', '50', '33', '25'
Description:
required valid args: valid, qualified directory path
Description:
required valid args: valid, qualified url starting with http://
Description:
valid args: array reference
Description:
valid args: integer 0 thru 10
Description:
valid args: integer 0 thru 10
Description:
valid args: see color args list.
valid args: see color args list.
valid args: see color args list.
Description:
Description:
Description:
| RTapo.com | Site Last updated 12/30/2011 |