You could create a form outside of krpano in the html, set display to none with css. Then in the javascript plugin you could do something like:
var the_form = document.getElementById("yourformid");
plugin.sprite.appendChild(the_form);
Thats the easiest way. The other way would be creating the whole form in javascript...
var the_form = document.createElement('form');
the_form.id = "the_form";
the_form.action = "post.php";
var the_input = document.createElement('input');
the_form.appendChild(the_input);
not 100% sure about the syntax, but something like that.
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Zephyr« (7. November 2011, 11:40)