|
|
Quellcode |
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> ..... |
|
|
Quellcode |
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));" /> |
|
|
Quellcode |
1 |
so.addParam("wmode","opaque");
|
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »michel« (9. November 2009, 21:25)
Benutzerinformationen überspringen
Wohnort: Wellington, New Zealand
Beruf: 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...
Zitat
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
...|
|
Quellcode |
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 *****/
.............
|
|
|
Quellcode |
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
........
}
|
|
|
Quellcode |
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
...
...Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »michel« (21. November 2010, 02:26)
where i put ---->
Zitat
<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
Zitat
so.addParam("wmode","opaque");
Zitat
/*
* 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;
}
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »michel« (20. November 2010, 19:44)
|
|
Quellcode |
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> |
|
|
Quellcode |
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));" /> |
|
|
Quellcode |
1 |
so.addParam("wmode","opaque");
|