cvs: pres2 / keyboard.js.php
| From: | Adam Trachtenberg | Date: | Fri, 17 Oct 2003 23:37:20 +0000 |
| Subject: | cvs: pres2 / keyboard.js.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-853@lists.php.net to get a copy of this message | ||
amt Fri Oct 17 19:37:20 2003 EDT
Modified files:
/pres2 keyboard.js.php
Log:
Fix global variable scoping issue in keyboard.js.php
Index: pres2/keyboard.js.php
diff -u pres2/keyboard.js.php:1.14 pres2/keyboard.js.php:1.15
--- pres2/keyboard.js.php:1.14 Sat Jun 21 21:20:44 2003
+++ pres2/keyboard.js.php Fri Oct 17 19:37:20 2003
@@ -29,11 +29,11 @@
}
currentEffect = currentEffect+1;
} else if (<?php echo $nextSlideNum; ?>) {
- top.location='<?php echo "http://$_SERVER[HTTP_HOST]$baseDir$showScript/{$_SESSION['currentPres']}/$nextSlideNum";
?>';
+ top.location='<?php echo "http://$_SERVER[HTTP_HOST]$baseDir$GLOBALS[showScript]/{$_SESSION['currentPres']}/$nextSlideNum";
?>';
}
}
if (e == 37 && <?php echo $prevSlideNum+1; ?>) /* left arrow */
- top.location='<?php echo "http://$_SERVER[HTTP_HOST]$baseDir$showScript/{$_SESSION['currentPres']}/$prevSlideNum";
?>';
+ top.location='<?php echo "http://$_SERVER[HTTP_HOST]$baseDir$GLOBALS[showScript]/{$_SESSION['currentPres']}/$prevSlideNum";
?>';
}
window.onkeyup = keypressHandler;
@@ -47,7 +47,7 @@
// make banner sticky on old Windows IEs
<?php
- if (!$css_supports_fixed) {
+ if (!$GLOBALS['css_supports_fixed']) {
echo('window.setInterval("fixNavigation()", 250);');
}
?>
@@ -61,7 +61,7 @@
if(divs[i].getAttribute('effect') == 'slide') {
divs[i].setAttribute('gotox',divs[i].offsetLeft);
divs[i].setAttribute('gotoy',0);
- divs[i].setAttribute('style','position:relative;left:-<?=$winW+10?>;top:0;');
+ divs[i].setAttribute('style','position:relative;left:-<?=$GLOBALS['winW']+10?>;top:0;');
} else if(divs[i].getAttribute('effect') == 'hide') {
style = divs[i].getAttribute('style');
divs[i].setAttribute('style',style+'visibility:hidden;');