FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

[Solved] [Java] KeyListener Not Working In Internet Explorer

 


Stubru Freak
I made a small game

Play it here

It works fine in Firefox but the KeyListener doesn't work in Internet Explorer.

I include the applet with this code:

Code:
<!--[if !IE]>-->
<object classid="java:Shotgun.class"
        type="application/x-java-applet"
        id="ShotgunApplet" >
<!--<![endif]-->
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        id="ShotgunAppletIE" >
         <param name="code" value="Shotgun" />
</object>
<!--[if !IE]>-->
</object>
<!--<![endif]-->


But also tried this:

Code:
<applet id='ShotgunApplet' code='Shotgun.class'></applet>


The full source code is available from here

Thanks in advance,
Frederik Vanderstraeten


--- Solved ---

Had to remove the e.consume(); in mousePressed()
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.