Set Value |
Default Value |
Introduction |
Transition |
"ELASTIC" |
Transition effect, which can be "ELASTIC", "Fade", or "NONE ". |
Speed |
350 |
Sets the duration of the Transition effect, in milliseconds |
Href |
False |
Example:$('H1 '). colorbox ({href: "welcome.html "}) This is used to set an anchor value or an element that is not an anchor, for example, a form button, for example: |
Title |
False |
This allows you to set a title for colorbox. |
REL |
False |
Example:$ ('# Example A'). colorbox ({rel: 'group1 '}) You can set the element set to be displayed based on the rel attribute of the element, or overwrite an existing rel attribute. |
Width |
False |
Example: "100%", "500px", or 500 Set the width, including the border and button |
Height |
False |
Example: "100%", "500px", or 500 Set height, including border and button |
Innerwidth |
False |
Example: "50%", "500px", or 500 You can set a fixed internal size, including the border and button. |
Innerheight |
False |
Example: "50%", "500px", or 500 This allows you to set a fixed internal height, including borders and buttons. |
Initialwidth |
300 |
Set initialization width |
Initialheight |
100 |
Set initialization height |
Maxwidth |
False |
Example: "100%", 500, "500px" Set the maximum width of the content |
Maxheight |
False |
Example: "100%", 500, "500px" Set the maximum height of the content |
Scalephotos |
True |
If it is true and maxwidth, maxheight, innerwidth, innerheight, width, or height is set, Colorbox scales the image to use the border |
Scrolling |
True |
If it is false, colorbox does not set a scroll bar for the overflow element. |
IFRAME |
False |
If it is true, the element is displayed in IFRAME. |
Inline |
False |
Example:$ ("# Inline"). colorbox ({inline: True, href: "# myform "}); If it is true, the jquery selector can be used to select the elements to be displayed. For example: |
Html |
False |
Example:$. FN. colorbox ({HTML :' Hello '}); This allows you to directly display HTMLCode, For example |
Photo |
False |
If it is true, colorbox only displays the elements according to the image to prevent the elements from being similar to photo. php? A connection like PIC = 1 is mistaken for a webpage |
Opacity |
0.85 |
The opacity of the mask layer ranges from 0 to 1. |
Open |
False |
If this parameter is set to true, colorbox is automatically enabled. |
Preloading |
True |
If this parameter is set to true, colorbox automatically preloads the image to be displayed. |
Overlayclose |
True |
If this parameter is set to true, you can click the mask layer to disable colorbox. |
Slideshow |
False |
If this parameter is set to true, the image will be automatically rolled. |
Slideshowspeed |
2500 |
Set Time, in milliseconds |
Slideshowauto |
True |
It is tuue, and the slide starts automatically. |
Slideshowstart |
"Start slideshow" |
Start Text of the auto-Slide button |
Slideshowstop |
"Stop slideshow" |
Text of the Stop Auto-sliding button |
Current |
"{Current} of {total }" |
Text Content: the serial number of the currently displayed Element |
Previous |
"Previous" |
Text of the previous button |
Next |
"Next" |
Text of the next button |
Close |
"Close" |
Text of the "close" button |