|
|
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 |
<script type="text/javascript">
// <![CDATA[
if (typeof(deconcept) !== 'undefined' && deconcept.SWFObjectUtil.getPlayerVersion().major >= 6)
{
// path to krpano.swf
var so = new SWFObject("../olihar.swf", "krpanoSWFObject", "100%", "100%", "9.0.28","#000000");
so.addParam("allowFullScreen","true");
so.addVariable("xml", "../buttons.xml");
// path to zoomify's ImageProperties.xml
so.addVariable("zoomify", "ImageProperties.xml");
// set panorama type of zoomify's image - SPHERE or CYLINDER
so.addVariable("zoomifytype", "SPHERE");
// set horizontal field of view of zoomify's image
so.addVariable("hfov", "270");
if ( so.write("krpanoDIV") ) { var mousewheelfixes = new SWFkrpanoMouseWheel(so); }
}
else
{
document.getElementById("krpanoDIV").innerHTML = '<table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Adobe Flash Player 9 needed<br><br><br><a href="http://www.adobe.com/go/getflashplayer/" target="_blank"><IMG SRC="http://www.macromedia.com/images/shared/download_buttons/get_flash_player.gif" BORDER="1"></a><br>...click here to download...<br><br><br><br></center></td></tr></table>';
}
// ]]>
|
|
|
Quellcode |
1 2 3 4 5 6 7 |
so.addVariable("hfov", "3.535");
so.addVariable("vfov", "9.449");
so.addVariable("vlookatmin", "-0.4724");
so.addVariable("vlookatmax", "+0.4724");
so.addVariable("hlookatmin", "-2");
so.addVariable("hlookatmax", "+2");
so.addVariable("fov", "10");
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 |
so.addVariable("image.hfov", "3.535");
so.addVariable("image.vfov", "9.449");
so.addVariable("view.limitview", "range");
so.addVariable("view.vlookatmin", "-0.4724");
so.addVariable("view.vlookatmax", "+0.4724");
so.addVariable("view.hlookatmin", "-2");
so.addVariable("view.hlookatmax", "+2");
so.addVariable("view.fov", "10");
|
|
|
Quellcode |
1 2 3 |
so.addVariable("image.hfov", "3.535");
so.addVariable("image.vfov", "9.449");
so.addVariable("view.limitview", "fullrange");
|
Hi,I do have another question regarding this. would it be possible when the full screen button is pressed that the image would zoom out for full view, as it is now some of the images zoom in a little bit when full screen is entered it does zoom out a little bit.
|
|
Quellcode |
1 |
<events onenterfullscreen="set(view.fov,90); set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);" onexitfullscreen="set(plugin[openfs].visible,true); set(plugin[closefs].visible,false);"/> |
Hi,I do have another question regarding this. would it be possible when the full screen button is pressed that the image would zoom out for full view, as it is now some of the images zoom in a little bit when full screen is entered it does zoom out a little bit.
that could be done by setting "view.fov" to a too high value (e.g. in this case 90) in the onfullscreen event,
the fov will be automatically limit then to the real possible value,
e.g. in your buttons-include.xml:
![]()
Quellcode
1 <events onenterfullscreen="set(view.fov,90); set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);" onexitfullscreen="set(plugin[openfs].visible,true); set(plugin[closefs].visible,false);"/>
best regards,
Klaus
Yes I changed it back, I have now changed it again for you to see.have you also changed the online code yet?
here is still the old one at the moment:
http://www.olihar.com/pano/buttons-include.xml
this is mac safari special thing...While I got you looking into this, are there any reasons why Cmd and shift buttons do not work in Full screen on Shiretoko(FireFox for Intel) but works fine in Safari. On the Mac.
I did wonder about how to make them smaller in the small window and then this size when FullScreen. Did not figure out how to.
|
|
Quellcode |
1 |
width="5%" height="prop" |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 |
<events onresize="setbuttonsizes()" /> <action name="setbuttonsizes"> mul(newwidth, stagewidth, 0.05); if(newwidth LT 10, set(newwidth,10)); if(newwidth GT 30, set(newwidth,30)); set(plugin[...].width, get(newwidth)); ... </action> |