Switch Focus to Captivate in Beginning
i want disable arrow keys page not scroll when captivate movie plays.
one of simulations requires use of , down arrow keys. when pressed, entire browser window scrolls. don't want this.
i found code on internet , added web page has embedded swf file.
<script type="text/javascript">
var keys = [];
window.addeventlistener("keydown",
function(e){
keys[e.keycode] = true;
switch(e.keycode){
case 37: case 39: case 38: case 40: // arrow keys
case 32: e.preventdefault(); break; // space
default: break; // not block other keys
}
},
false);
window.addeventlistener('keyup',
function(e){
keys[e.keycode] = false;
},
false);
</script>
it works in firefox when captivate movie loads. however, in ie, have press tab key in order prevent arrow keys scrolling entire page. don't want students have press tab key.
i wondering if there way shift focus captivate movie when movie loads?
thanks
i figured out workaround disable arrow keys scrolling page. in addition above javascript code, modified body tag:
<body onload="rightclick.init();" style="overflow: hidden>
More discussions in Adobe Captivate
adobe
Comments
Post a Comment