u can implement the ServletContextL istener interface in a java class
to access 2 methods namely,
[code=java]
public void contextInitiali zed(ServletCont extEvent e)
{
//your code here;
}
[/code] and
[code=java]
public void contextDestroye d(ServletContex tEvent e)
{
//cleaning up;
}
[/code] from the parameter e you can access the context and write whatever code...
User Profile
Collapse
-
-
what i am trying to do is to make my character "Bowser" fire bullets on pressing a key. the fire function mimics a thread. the bullet image should load dynamically and will be moved horizontally across the screen after loading.
note that i can do this by adding a few html <img/> tags with width and height set to 0. but if i want rapid firing of an unknown number of bullets i must load them dynamically the reason i am calling...Leave a comment:
-
dynamic addition and manipulation of image using javascript
i am trying to dynamically load the image of a bullet and then manipulate it using a looping function( with setTimeout() and clearTimeout() methods).
here's the code>>>>
...Code:<html> <head> <script type="text/javascript" language="JavaScript"> var timer; function keyPress( ) { var bullet=new Image( ); var bowser=document.getElementById("Bowser");
No activity results to display
Show More
Leave a comment: