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.

sebastiaan

Beginner

  • "sebastiaan" started this thread

Posts: 7

Location: The Hague, The Netherlands

Occupation: Software Developer

  • Send private message

1

Monday, July 26th 2010, 11:36am

Action when clicking anywhere in pano

I really would love to perform an action when clicking anywhere in the pano, but I can't find any "ondown" event that is valid for the whole pano.
The only thing I can think of now is scaling a transparent png to 100% width and height over the pano and have the action performed when that is clicked. Is that the way to go?

Edit: Or maybe there's an ondrag method? That would work just fine for me as well..

This post has been edited 1 times, last edit by "sebastiaan" (Jul 26th 2010, 2:20pm)


2

Wednesday, July 28th 2010, 10:38am

Hi,

there are these global events for caching mouse clicks:

Source code

1
2
3
4
<events onclick=".."
        onmousedown="..."
        onmouseup="..."
        />


best regards,
Klaus