Tuesday, July 23, 2019
   
Text Size

Compose tips

  • To add a lightbox to your images, add rel="lightbox" attribute to any link tag to activate the lightbox. For example:

    <a href="image-1.jpg" rel="lightbox">image #1</a>

    <a href="image-1.jpg" rel="lightbox[][my caption]">image #1</a>

    To show a caption either use the title attribute or put in the second set of square brackets of the rel attribute.

    If you have a set of related images that you would like to group, then you will need to include a group name between square brackets in the rel attribute. For example:

    <a href="image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
    <a href="image-2.jpg" rel="lightbox[roadtrip][caption 2]">image #2</a>
    <a href="image-3.jpg" rel="lightbox[roadtrip][caption 3]">image #3</a>

    There are no limits to the number of image sets per page or how many images are allowed in each set.

    If you wish to turn the caption into a link, format your caption in the following way:

    <a href="image-1.jpg" rel='lightbox[][<a href="http://www.yourlink.com">View Image Details</a>]' >image #1</a>

  • It's possible to show HTML snippets in the lightbox, that is on the same domain. In this case the "rel" attribute should be set to "lightmodal". Again it's possible to group the content, (e.g. lightmodal[group][caption]) but in addition to that, it's possible to control some of the modal properties. It's possible to set the "width", "height" and "scrolling" properties of the modal. The properties are separated from the group name by a |, for example lightmodal[group|width:100px;][caption]. If no grouping is being used, then the | is still used and the format would be lightmodal[|width:100px;]. The properties should all be of the format "property: value;" - note the closing semi-colon. If no modal properties are set, then the default width and height of 400px will be used. See below for more detailed examples.

    Basic example:
    <a href="search.php" rel="lightmodal">Search</a>

    Grouped example:
    <a href="search.php" rel="lightmodal[search][caption 1]">Search</a>
    <a href="search.php?status=1" rel="lightmodal[search]">Search published</a>

    Controlling modal property example:
    <a href="search.php" rel="lightmodal[|width:400px; height:300px; scrolling: auto;][caption]">Search</a>

    Controlling modal property when grouped example:
    <a href="search.php" rel="lightmodal[search|width:400px; height:300px; scrolling: auto;]">Search</a>
    <a href="search.php?status=1" rel="lightmodal[search|width:400px; height:300px;]">Search published</a>

ACAOnline

ACAOnline features everything Air Commando Association, from membership signup forms, event registration, photos of all ACA events, Air Commando Foundation news and fund raisers, Corporate Partner information, Air Commando Journal archives, even the Commando Store. Our list of board of directors, the Air Commando Hall of Fame inductees, and lots more can be found on this web site. We hope you take a few minutes and check out all that we offer to members and the community at large, and let us know if you have any questions by contacting us at info@aircommando.org.

Contact Information

Air Commando Association
Mailing Address: P.O. Box 7, Mary Esther, FL 32569-0007

Street Address: 2502 Highway 98 W, Mary Esther, FL 32569

Phone: 850-581-0099 Fax: 850-581-8988
Email:  Click here