scale pano with onclick

  • Hello everyone,

    I don't know if this is possible but I'll ask anyway. I have a client that I build tours for and he embeds them into his wordpress site. He want's all is panos in 610px x 480px which causes a problem with vertical still images. if someone clicks a hotspot that loads an image then the vertical image isn't seen completely.

    Is there a way to change the vertical scale dynamically when someone clicks the hotspot and when the close the image it goes back to the regular size?

    Thanks in advance.

    Robert

  • Hi Robert,

    I think using javascript...
    Perhaps something like this:
    Javascript function inside the html code:

    Code
    function redim(arg)
    	{
    		document.getElementById("krpanoSWFObject").height = arg;		
    	}


    Call to the javascript function from the xml code:

    Code
    onclick="js(redim(500));"

    Hope this help...

    SAlut.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!