Hi,
I'm developing plugin using java script in krpano. I read document to develop it but I can't do it.
Now I want to draw a button and display it in vtour and add function to the button.
Thanks for helps
Draw button in java script plugin
-
-
Who can help me????
-
Easier to just make it in html wmode: transparent with a krpano.call
If you've already made it in flash actionscript its should be very similar. Where are you going wrong?
-
I have plugin.js file and I want add button to it.
I read document at here but I don't know how to create button -
Is there a reason you don't want to do it in krpano? It's a lot easier and mostly the same. Just a bit more javascripty. It is faster though if you need to make a couple thousand buttons at once.
Try reading the basic krpano documentation first.
a normal krpano button would be
<layer name="button" url="button.png" enabled="true" keep="true" visible="true" onclick="myfunction();" />in the javascript plugin you're doing the same thing but on a lower level one attribute at a time.
-
Sorry about my english...
I want to add button from plugin not direct by code in tour.xml
I want when I call plugin from website, plugin will be load with vtour with button. If without plugin, no button is display. -
Then just use javascript. Forget about a plugin as that doesn't make sense in your situation.
Look here.
https://krpano.com/docu/js/#top
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!