Sie sind nicht angemeldet.

1

Montag, 6. März 2017, 12:32

Change background color to white not working

Hello,

I'm trying to change the background color of this tour from the default black to white.

I added the bgcolor attribute to the <krpano> tag as said in the documentation. Doesn't wock:

Quellcode

1
<krpano version="1.18" logkey="false" showerrors="false" onstart="startup();" bgcolor="0xFFFFFF">


I also changed every possible element background in the HTML file to white. Doesn't work either:

Quellcode

1
2
3
         html {background: white; height:100%; }
         body {background: white;  height:100%; overflow: hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#ffffff; }
         div#krpanoSWFObject {background: white !important; }


What am I doing wrong?

PS: Using krpano 1.19-pr8 (build 2016-09-30)

Thanks

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »ParallaxVT« (6. März 2017, 12:50)


Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Montag, 6. März 2017, 13:53

Hi

Once I also had this problem and the only thing that helped was to change the color tour.js

Open tour.js -> CTRL+F (find #000000) -> change to #FFFFFF
I hope it will help.



Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Montag, 6. März 2017, 14:46

Hello Piotr,

That's a very clever hack and it worked fine. Thank you.

I wished there was a proper way to do it, as I'll loose my edit next time I update the Krpano.

Kind regards,

Rafael

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

4

Montag, 6. März 2017, 14:55

I wished there was a proper way to do it, as I'll loose my edit next time I update the Krpano.
It would be very helpful *smile*


best regards
Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

5

Freitag, 11. Mai 2018, 21:33

Will continue on this thread as it is for same topic. One user reported me he can't change background color with:
<krpano version="1.19" bgcolor="0xFF0000">

Gave workaround but still let's check if this is Krpano bug or else. Can someone confirm this to be working, please?

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

6

Samstag, 12. Mai 2018, 11:12

Will continue on this thread as it is for same topic. One user reported me he can't change background color with:


Gave workaround but still let's check if this is Krpano bug or else. Can someone confirm this to be working, please?
For me, this has not worked for some time. *sad*


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

7

Samstag, 12. Mai 2018, 11:17

HI,

never got it to work as well.
used to do the .js hack in the early days.
Tuur *thumbsup*

Mael B.

Schüler

Beiträge: 157

Wohnort: France, Montpellier

  • Nachricht senden

8

Sonntag, 16. Juni 2019, 23:00

it also works well by adding the info in the html like this *smile*

Quellcode

1
2
3
	<script>
		embedpano({swf:"krpano.swf", xml:"tour.xml", target:"pano", html5:"auto", mobilescale:1.0, bgcolor: "#FFFFFF", passQueryParameters:true, consolelog:true});
	</script>