User Profile

Collapse

Profile Sidebar

Collapse
pdeb1234
pdeb1234
Last Activity: Oct 8 '08, 12:24 PM
Joined: Oct 6 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • pdeb1234
    replied to Call servlet On Server Startup
    in Java
    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...
    See more | Go to post
    Last edited by Nepomuk; Oct 7 '08, 02:01 PM. Reason: Added [CODE] tags

    Leave a comment:


  • 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...
    See more | Go to post

    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");
    ...
    See more | Go to post
    Last edited by acoder; Oct 6 '08, 10:22 AM. Reason: Added [code] tags
No activity results to display
Show More
Working...