Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function test() {
  2.         window.setTimeout(zoomto1,<?= getParam(0)["interval"] ;?>);
  3.         window.setTimeout(reset, <?= getParam(0)["finZoom"] ;?>);
  4.         window.setTimeout(zoomto2, <?= getParam(1)["interval"]; ?>);
  5.         window.setTimeout(reset, <?= getParam(1)["finZoom"] ;?>)
  6.     }
  7.     function zoomto1() {
  8.         zoom.to({
  9.             x: <?= getParam(0)["posX"]?>,
  10.             y: <?= getParam(0)["posY"]?>,
  11.             //width: 200,
  12.             //height: 200
  13.             scale: <?= getParam(0)["scale"]?>
  14.         });
  15.     }
  16.     function zoomto2() {
  17.         zoom.to({
  18.             x: <?= getParam(1)["posX"]?>,
  19.             y: <?= getParam(1)["posY"]?>,
  20.             //width: 200,
  21.             //height: 200
  22.             scale: <?= getParam(1)["scale"]?>
  23.         });
  24.     }
  25.  
  26.     function reset(){
  27.         zoom.out()
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement