
Untitled
By: a guest on
Apr 16th, 2012 | syntax:
None | size: 0.82 KB | hits: 34 | expires: Never
How do I close colorbox iframe with javascript?
$.noConflict();
jQuery(document).ready(function($){
$("a[rel='colorbox']").each(function(){
var getWidth = parseInt($(this).attr('width'))
var getHeight = parseInt($(this).attr('height'))
var getScroll = parseInt($(this).attr('scrolling'))
if(getScroll == 'yes') { var frameScroll = 'true'; }
if(!getWidth) { var getWidth = '720'; }
if(!getHeight) { var getHeight = '480'; }
$(this).colorbox({innerWidth:getWidth, innerHeight:getHeight, scrolling:frameScroll, iframe:true, rel:"nofollow", transition:"elastic"});
});
});
parent.$.colorbox.close(); return false;
parent.jQuery.colorbox.close(); return false;