Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $nbvaleurs = count(getZoom());
- echo $nbvaleurs;
- for($i=0; $i<$nbvaleurs; $i++){
- //print_r(getTest($i));
- getParam($i);
- echo 'function param_global() {
- window.setTimeout(zoomto,<?= getParam('.$i.')["interval"] ;?>);
- window.setTimeout(reset, <?= getParam('.$i.')["finZoom"] ;?>);
- }
- function zoomto() {
- zoom.to({
- x: <?= getParam('.$i.')["posX"]?>,
- y: <?= getParam('.$i.')["posY"]?>,
- scale: <?= getParam('.$i.')["scale"]?>
- });
- }
- function reset(){
- zoom.out()
- }';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement