• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Java applet prg  RSS feed

 
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can my gif file be made use of to modify the same so that the elecopter.gif starts flying up
An applet  java prg does this .(java applet program shown )How to modify my gif file
to function like the java prg or how to get the java plug for this.

Advance thanks
As
CRMK


 
Ranch Hand
Posts: 161
5
MS IE Notepad Suse
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
first: get rid of applets - they're dead
second: the code you posted doesn't make sense in any way
third: there's a loop and sleep inside a method run in EDT - a gui no-go - in any language
Maybe you should try to re-phrase what you want to accomplish so we can try to help you in some usefull direction.
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Matt Wong wrote:first: get rid of applets - they're dead
second: the code you posted doesn't make sense in any way
third: there's a loop and sleep inside a method run in EDT - a gui no-go - in any language
Maybe you should try to re-phrase what you want to accomplish so we can try to help you in some usefull direction.



Dear RanchGuide
I am delighted to get nice respnse though only after several days.Thanks
I agree with you of your latest informations on applets.
Contextually i condole  for the demise of age old tradtionally good service an applet has rendered
Now,an alterbate as per your suggestion:
Simply download  Eleright..txt and Elicopter.gif files at one place
Replace the txt extension by .html extension(Eleright)
The file should now be Eleright.html
Open this html file ina browser
Then use the Button to animate
Lastly stop Button to stop
If you have HTML editotor it ill definitely work .In interbet explorer(Browser) right animation may not be possible
Please reply if sucees
AS
CRMK
[ code]HTML>
<BODY>
<html>
   <head>
     <title>JavaScript Animation</title>
    <script type="text/javascript">
        <!-- <br />            var imgObj = null; <br />            var animate ; <br />           function init(){ <br />               imgObj = document.getElementById('myImage'); <br />               imgObj.style.position= 'relative'; <br />               imgObj.style.left = '0px'; <br />            } <br />            function moveRight(){ <br />               imgObj.style.left = parseInt(imgObj.style.left) + 10 + 'px'; <br />               animate = setTimeout(moveRight,20); // call moveRight in 20msec <br />            } <br />            function stop(){ <br />               clearTimeout(animate); <br />               imgObj.style.left = '0px'; <br />            } <br />            window.onload =init; <br />         //-->
     </script>
    </head>
 <body>
  <form>
       
       

Click the buttons below to handle animation


        <input type="button" value="Start" onclick="moveRight();" />
        <input type="button" value="Stop" onclick="stop();" />
     </form>
     
  </body>
</html>

[/code]
Elecopter.gif
[Thumbnail for Elecopter.gif]
 
Saloon Keeper
Posts: 5478
143
Android Firefox Browser Mac OS X Safari Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does that mean the problem is solved? You say "Please reply if sucees" which sounds as if you are expecting people to try something and report back with the solution, but it's not clear what people should try, nor is it likely (IMO) that people will do your work for you. If, OTOH, there was a clear problem description, that would help us help you.

I am delighted to get nice respnse though only after several days.Thanks


Do you imagine that using sarcasm will make it more likely that people will help you?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!