Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Setting Resize function in Fancybox

12:57 pm on Jul 23, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Oct 25, 2006
posts: 1033
votes: 0

I have tested version V2 for Fancybox.

How to set (automatic) resized function with content inside V2?

'width' : '98%',
'height' : '98%',
type: 'iframe',
autoSize : false,
beforeLoad : function() {
this.width = parseInt(this.href.match(/width=[0-9]+/i)[0].replace('width=',''));
this.height = parseInt(this.href.match(/height=[0-9]+/i)[0].replace('height=',''));

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members