| Server IP : 23.111.136.34 / Your IP : 216.73.216.136 Web Server : Apache System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : meusitei ( 1072) PHP Version : 5.6.40 Disable Function : show_source, system, shell_exec, passthru, proc_open MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/meusitei/www/controle/cms/colorbox/ |
Upload File : |
$(document).ready(function () {
// This makes the link inside the iframe open in parent window
$('a.day_view').click(function (event) {
event.preventDefault(); // this just cancels the default link behavior.
parent.showColorBox($(this).attr("href")); //this makes the parent window load the showColorBox function, using the a.colorbox href value
});
});
//This function only needs to be available in the parent window, but no harm in loading it for both. Notice this is NOT in the $(document).ready on purpose.
function showColorBox(imageURL) {
$.fn.colorbox({ innerWidth: "800px", innerHeight: "500px", iframe: true, overlayClose: false, transition: "elastic", opacity: .9, open: true, href: imageURL });
}