Web Development Blog

24K Design Studio :: Blog :: Colorbox vs "Image with .php extension"
Author:
Password:
Colorbox vs "Image with .php extension"
19:48, 22 Oct, 2010
by David

Colorbox is a jquery plugin. It can be found at http://colorpowered.com/colorbox/.
For a gallery, if the images are transfered through PHP, the path of the image would be like image.php?id=5
If the colorbox is loaded using a easy way like
$(document).ready(function(){
    $("a[rel='group1']").colorbox({transition:'fade', speed:500});
});
It will not work because the extension of image (.php) is not like a image extension.

When php-transfer-image and colorbox is used together, we should let the colorbox not check the filename.
Using it like this:
$(document).ready(function(){
    $("a[rel='group1']").colorbox({transition:'fade', speed:500, photo:true});
});
Tested and worked.

Reply:
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#1
Phil
20:57, 21 Jun, 2011
 
Thank you for this post, it allowed me to solve my problem in 1 minute :)
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#1
tuwufifu
05:03, 25 Nov, 2015
 
1
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#2
Simon
06:15, 19 Jan, 2012
 
David, thanks a lot! :-)
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#1
bheqgvqt
05:03, 25 Nov, 2015
 
1
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#3
hika
15:13, 27 May, 2014
 
Thank you!!!!!
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#1
wjtfkyfm
05:03, 25 Nov, 2015
 
1
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#4
Emil
22:28, 29 Jan, 2015
 
Thank you!
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#5
Vishnu
15:39, 08 Dec, 2015
 
Thank yoiu
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
#6
Masaki
20:49, 13 Sep, 2016
 
Thank you very much. This post saved me.
Reply
Your name:
Only visible to the author.

Tell us you are not a robot. What is captcha1captchaOcaptcha2 = 

Reply
View the latest 5 entries.