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

Thursday, July 9th 2015, 12:43pm

Any way to Unset cursor (HTML5) Pano's

Hi there,

I've read other forum posts and the docs, so I've learnt that it's not currently possible to create a custom cursor (PNG) for the HTML5 player.

Since I can use pure CSS to achieve this on modern browsers (https://developer.mozilla.org/en-US/docs/Web/CSS/cursor), is there anyway to stop krpano from switching off my cursors?

Currently, if I add the custom cursor CSS to the <body> tag and the krPanoSWFObject DIV.. My custom cursor will appear UNTIL I click down to drag - then it get's replaced by the standard "move" and "Default" cursors. I just want to disable this, so I can continue using the CSS cursor instead.

Any help is appreciated

Thanks

2

Thursday, July 9th 2015, 1:06pm

I think I solved this.
For anyone else curious how to do this, the following CSS will overwrite the krpano cursor stuff, and you can add your own:

Source code

1
2
#krpanoSWFObject {		* {			cursor: url('/img/move-cursor.png'), move !important;		}
	}

3

Tuesday, July 14th 2015, 10:06am

Hi,

since version 1.19 pre-release 2 you can set the CSS cursors direct in the xml:
http://krpano.com/docu/xml/#cursors

e.g.

Source code

1
2
3
4
<cursors standard="default"
         dragging="url('cursor.png'), move"
         moving="url('cursor.png'), move"
         />


But note - the url paths would need to be relative to the html file as krpano itself doesn't parse or load these paths.

Best regards,
Klaus

Tuur

Sage

Posts: 3,111

Location: Netherlands

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

  • Send private message

4

Friday, June 17th 2016, 1:14pm

Hi,

i was wondering if we can also change the graphic for clickable items, or hovering clickable items i would say.
I tried some with 'pointer' from the xml.. but no succes.
Would it be possible to make this also work?

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur