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.
|
|
Source code |
1 2 3 4 5 6 7 8 |
<html> <head> <title>BlaBlaTitle</title> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="thickbox.js"></script> <style type="text/css" media="all">@import "thickbox.css";</style> </head> ..... |
|
|
Source code |
1 2 3 4 5 |
<plugin name="thickbox_button" keep="true" style="buttonstyle" html="[p]load thickbox[/p]" align="bottom" x="0" y="25" onclick="js(tb_show(A_Title_For_The_iFrame,krpano.com?keepThis=true&TB_iframe=true&height=550&width=800));" /> |
|
|
Source code |
1 |
so.addParam("wmode","opaque");
|
This post has been edited 2 times, last edit by "michel" (Nov 9th 2009, 9:25pm)
Location: Wellington, New Zealand
Occupation: Trying to build an entire walkthrough of NZ for tourists
I have tried about this... and you are right... It is not possible to call a thickbox when we are in Fullscreen...
Quoted
The other problem I was having that I was trying to get it to load over flash in fullscreen which it transpires, is not possible!
, but I have problems in doing the second thing
...|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
/*
* Thickbox 3.1 - One Box To Rule Them All.
* By Cody Lindley (http://www.codylindley.com)
* Copyright (c) 2007 cody lindley
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
var tb_pathToImage = "thickbox/images/loadingAnimation.gif";
/***** BEGINNING - Code added to switch krpano to fullscreen or normalscreen *****/
var krpano_state_FS;
function krpano() {
return document.getElementById("krpanoSWFObject");
}
function switch_Krpano_FS() {
krpano().call("switch(fullscreen)");
}
function is_Krpano_FS() {
krpano_state_FS = krpano().get("fullscreen");
if ( krpano_state_FS == true ) { krpano().call("switch(fullscreen);"); }
}
function was_Krpano_FS() {
if ( krpano_state_FS == true ) { setTimeout ('krpano().call("switch(fullscreen);");', 1000); }
//if ( krpano_state_FS == true ) { krpano().call("delayedcall(1,switch(fullscreen));"); }
}
/***** END - Code added to switch krpano to fullscreen or normalscreen *****/
.............
|
|
|
Source code |
1 2 3 4 5 |
function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
is_Krpano_FS(); // added for when krpano is FullScreen
........
}
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
function tb_remove() {
$("#TB_imageOff").unbind("click");
$("#TB_closeWindowButton").unbind("click");
$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
$("#TB_load").remove();
if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
$("body","html").css({height: "auto", width: "auto"});
$("html").css("overflow","");
}
document.onkeydown = "";
document.onkeyup = "";
was_Krpano_FS(); // added for when krpano is FullScreen
return false;
}
|
...
... At first I was thinking that the tb_remove() must have some time to be executed, so I added a setTimeout to the krpano().call("switch(fullscreen);") but this not solve the problem... I do not know how to do it works
...
...This post has been edited 1 times, last edit by "michel" (Nov 21st 2010, 2:26am)
where i put ---->
Quoted
<div id="krpanoDIV">
<noscript><table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Javascript not activated<br><br></center></td></tr></table></noscript>
</div>
<script type="text/javascript" src="swfkrpano.js"></script>
<script type="text/javascript">
// <![CDATA[
var swf = createswf("krpano.swf", "krpanoSWFObject", "100%", "100%");
swf.addVariable("xml", "krpano.xml");
swf.embed("krpanoDIV");
// ]]>
</script>
Could you help me Please Thanks
Quoted
so.addParam("wmode","opaque");
Quoted
/*
* Thickbox 3.1 - One Box To Rule Them All.
* By Cody Lindley (http://www.codylindley.com)
* Copyright (c) 2007 cody lindley
* Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/
var tb_pathToImage = "images/loadingAnimation.gif";
/***** BEGINNING - Code added to switch krpano to fullscreen or normalscreen *****/
var krpano_state_FS;
function krpano() {
return document.getElementById("krpanoSWFObject");
}
function switch_Krpano_FS() {
krpano().call("switch(fullscreen)");
}
function is_Krpano_FS() {
krpano_state_FS = krpano().get("fullscreen");
if ( krpano_state_FS == true ) { krpano().call("switch(fullscreen);"); }
}
function was_Krpano_FS() {
if ( krpano_state_FS == true ) { setTimeout ('krpano().call("switch(fullscreen);");', 1000); }
//if ( krpano_state_FS == true ) { krpano().call("delayedcall(1,switch(fullscreen));"); }
}
/***** END - Code added to switch krpano to fullscreen or normalscreen *****/
function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
is_Krpano_FS(); // added for when krpano is FullScreen
try {
if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
$("body","html").css({height: "100%", width: "100%"});
$("html").css("overflow","hidden");
if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
$("#TB_overlay").click(tb_remove);
}
}else{//all others
if(document.getElementById("TB_overlay") === null){
$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
$("#TB_overlay").click(tb_remove);
}
}
function tb_remove() {
$("#TB_imageOff").unbind("click");
$("#TB_closeWindowButton").unbind("click");
$("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
$("#TB_load").remove();
if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
$("body","html").css({height: "auto", width: "auto"});
$("html").css("overflow","");
}
document.onkeydown = "";
document.onkeyup = "";
return false;
was_Krpano_FS(); // added for when krpano is FullScreen
return false;
}
This post has been edited 1 times, last edit by "michel" (Nov 20th 2010, 7:44pm)
|
|
Source code |
1 2 3 |
<script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="thickbox.js"></script> <style type="text/css" media="all">@import "thickbox.css";</style> |
|
|
Source code |
1 2 3 4 5 6 |
<plugin name="thickbox_button" keep="true" style="buttonstyle" html="[p]load thickbox[/p]" align="bottom" x="0" y="25" onclick="js(tb_show(A_Title_For_The_iFrame,krpano.com?keepThis=true&TB_iframe=true&height=550&width=800));" /> |
|
|
Source code |
1 |
so.addParam("wmode","opaque");
|