Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-01-26 11:06:29

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 809
Website

Re: Fancy Zoom ... is working, but where is the overlay?

After some thinking and trying this will execute the overlay:

// Select all links set the overlay opacity to 80%
$('a').fancyzoom({overlay:0.6,showoverlay:true});

It’s strange because the showoverlay:true should be ‘on’ as a default setting. And there is something else … if the overlay is there, put your cursor outside the imagebox … !?

Btw … on the site where I got the plugin from the same thing is happening!

Last edited by RedFox (2009-01-26 11:09:03)

Offline

#14 2009-01-26 11:36:34

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: Fancy Zoom ... is working, but where is the overlay?

It’s because cursor:"wait" is specified in the css for the overlay in the javascript for adding the overlay in jquery.fancyzoom.js:

	$.fn.fancyzoom = function(userOptions) {
		//the var to the image box div
	 	var oOverlay = $('<div>').css({
			height: '100%',
			width: '100%',
   			position:'fixed',
			left: 0,
			top: 0,
			cursor:"wait"
		});

TXP Builders – finely-crafted code, design and txp

Offline

#15 2009-01-26 11:49:20

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 809
Website

Re: Fancy Zoom ... is working, but where is the overlay?

@jakob: You’re my hero … :) … but can I change or delete it without Fancy Zoom is falling apart? [edit: yes I can … :)]

I don’t know the reason why there is (was) a waiting cursor in the first place …

Last edited by RedFox (2009-01-26 11:54:35)

Offline

Board footer

Powered by FluxBB