ie8在Flash中使用箭头滚动
我在使用 Flash 游戏时遇到问题,该游戏使用向上和向下箭头,由于某种原因,当我单击游戏时,网页也会滚动,我该如何修复它? ,我在 JavaScript 中使用了这个作弊,但没有工作:
document.onkeydown = function(e) {
var k = (window.event) ? event.keyCode : e.keyCode;
if(k >= 37 && k <= 40) {
return false;
}
}
另外,这个游戏正在通过另一个嵌入加载 Flash 游戏的 iframe 的 Flash 加载。
谢谢。
塞巴斯蒂安.
i have a problem with a game in flash , this game using up and down arrows, for some reason, when i click the game , the web page scrolls too, how can i fix it ? , i use this cheat in javascript but didn't work:
document.onkeydown = function(e) {
var k = (window.event) ? event.keyCode : e.keyCode;
if(k >= 37 && k <= 40) {
return false;
}
}
Also ,this game is loading trought another flash that embeds an iframe loading the flash game.
Thanks.
Sebastian.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将 wmode 属性更改为纯色(即与页面背景颜色相同)。
try changing the wmode attribute to a solid colour (i.e. the same colour as your page background).