You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Note, ajax requests are subject to the [same origin policy](http://en.wikipedia.org/wiki/Same_origin_policy).
80
94
If fancyBox will not be able to get content type, it will try to guess based on 'href' and will quit silently if would not succeed.
@@ -88,129 +102,141 @@ Advanced
88
102
Helpers provide a simple mechanism to extend the capabilities of fancyBox. There are two built-in helpers - 'overlay' and 'title'.
89
103
You can disable them, set custom options or enable other helpers. Examples:
90
104
91
-
//Disable title helper
92
-
$(".fancybox").fancybox({
93
-
helpers: {
94
-
title: null
95
-
}
96
-
});
105
+
```js
106
+
//Disable title helper
107
+
$(".fancybox").fancybox({
108
+
helpers: {
109
+
title:null
110
+
}
111
+
});
97
112
98
-
//Disable overlay helper
99
-
$(".fancybox").fancybox({
100
-
helpers: {
101
-
overlay : null
102
-
}
103
-
});
113
+
//Disable overlay helper
114
+
$(".fancybox").fancybox({
115
+
helpers: {
116
+
overlay :null
117
+
}
118
+
});
104
119
105
-
//Change title position and overlay color
106
-
$(".fancybox").fancybox({
107
-
helpers: {
108
-
title : {
109
-
type : 'inside'
110
-
},
111
-
overlay : {
112
-
css : {
113
-
'background' : 'rgba(255,255,255,0.5)'
114
-
}
120
+
//Change title position and overlay color
121
+
$(".fancybox").fancybox({
122
+
helpers: {
123
+
title : {
124
+
type :'inside'
125
+
},
126
+
overlay : {
127
+
css : {
128
+
'background':'rgba(255,255,255,0.5)'
115
129
}
116
130
}
117
-
});
118
-
119
-
//Enable thumbnail helper and set custom options
120
-
$(".fancybox").fancybox({
121
-
helpers: {
122
-
thumbs : {
123
-
width: 50,
124
-
height: 50
125
-
}
131
+
}
132
+
});
133
+
134
+
//Enable thumbnail helper and set custom options
135
+
$(".fancybox").fancybox({
136
+
helpers: {
137
+
thumbs : {
138
+
width:50,
139
+
height:50
126
140
}
127
-
});
128
-
141
+
}
142
+
});
143
+
```
129
144
130
145
### API
131
146
132
147
Also available are event driven callback methods. The `this` keyword refers to the current or upcoming object (depends on callback method). Here is how you can change title:
0 commit comments