You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, March 27th 2015, 1:54pm

embedding fancybox

Hi,
I'm working since two days on trying to get a fancybox type iframe working as a popup over a pano. The only thing which I don't get is to open the fancybox without a background resp. with transparent background.
I don't really understand javascript/ jquery and all I could do is read dozens of forums and trial and error...
Actually, the transparent background is working on android, and also on desktop windows with chrome browser. Firefox doesn't show anything, IE shows a white background, opera also white background.
Maybe there is a conflict between things which I don't understand. Would be really glad if someone could take a look, it's in my tour that I posted in another thread already:
http://www.artesphera.de/pano/_vt/Kieler_Foerde/tour.html

The fancybox opens if you click on the logo in the upper left corner of the screen.

Thanks a lot in advance!

2

Friday, March 27th 2015, 11:13pm

meanwhile, I noticed that it's a problem with flash. I had chosen the option html5="auto". Now, after changing to html5="prefer" the fancybox is wotking correctly. Although I would like to get it running correctly with flash, too, but I have no idea what to do...

3

Saturday, March 28th 2015, 3:24pm

and finally I got it working with flash too. had to put flash's wmode to "opaque" (the default value was "direct")
now it runs correctly and smoothly with html5=auto and with all browsers that I tested...

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

4

Saturday, March 28th 2015, 4:25pm

Onhover mask has offset to the right. You can change settings in sidemenu.xml

menu_0_text_x_start ="0"

and after the line 290 you can move text right with textfield padding attribute e.g.

set(plugin[%menu_0].padding,3);

or

set(plugin[%menu_0].padding,'0 0 0 5');


http://www.artesphera.de/pano/_vt/Kieler…_text_x_start=0

5

Saturday, March 28th 2015, 4:48pm

great! thank you. So I'm nearly satisfied. What I would like to change is to get the sidemenu in other dimensions for mobile devices. Is this also possible in a way maybe to make two different <menu_settings> and defining one to only work on mobile devices or smartphones? I would like to start with a closed menu then and to cover the whole screen with the menu when opened, with larger buttons and fonts, and with always closing the menu after having pressed a button...
or maybe I can use two different sidemenu.xml's, one for mobiles and one for desktops...?

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

7

Tuesday, March 31st 2015, 11:37am

a new problem/ question:
I'd like to js call a fancybox with a URL + Parameter which I get from a scene. I don't know if it is possible...
to understand what I mean, it would be something like this:

this works: onover="js(popup(info/blabla.php?id=1));"
and this is what I want: onover="js(info/blabla.php?id=.GET(id));"

is there a way to do this?

thanks