Click to See Complete Forum and Search --> : Slow Animation on top of Java Applet
mark4man
09-04-2003, 03:21 PM
Put together a real nice animation of a moving rocket ship; & wanted it to be placed on a dynamic space background. Found a great free Java Applet entitled "Flying Stars", where a field of stars moves laterally across a black background (in the same direction as my animated ship)!
Trouble is, when I assign my animated .gif to the Applet code & preview in my browser, for some reason, the animation plays very, very slow (i.e., instead of the frames playing every .1 second, they play every 4 or 5 seconds.)
Was hoping someone here could provide some insight (& hopefully some answers.)
Thanks in advance,
mark4man
zachzach
09-04-2003, 03:47 PM
well this acually is a JAVA answer, but i have a DHTML style soulution:
do you have frontpage?
if you do, place the applet where you want in on your page, then inclose the img (....<img src=...>....) in a div(....<div>....</div>....) and make the divs style(....<div >>>>>>>>STYLE="..."<<<<<<<<.....>........</div>......)
style="position: absolute;"
then just go to the div and a special mouse img will arpear, then click and drag till you get it where you want it
there you go!
if u dont have frontpage or dreamweaver, you can just use a WYSIWYG(what you see is what you get) editor
dont use note pad you be going back and forth from the page to the text and it'll get messy
thats it!
mark4man
09-04-2003, 04:04 PM
zachzach,
Thanks.
I do have Dreamweaver MX . . . but I'm not following your coding.
This is the applet code in question:
---------------------------------------------------------------------------------------------------
<applet code="StarField.class" name="StarField" width="300" height="200"><param name="LogoPic" value="wa.gif">
</applet>
<p align="center"><font face="arial" size="-2">Free Java applets provided by</font><br>
<font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
Kit</a></font></p>
---------------------------------------------------------------------------------------------------
"wa.gif is the image displayed in the preview (on the site where the free applet is available.) I replaced that with mine.
Not sure where to go from here.
Thanks again,
mark4man
zachzach
09-10-2003, 04:31 PM
you know what, i think i acually saw that applet
weird coincedence
even weirder:
didn't work for me eather
see what i did to make it work, im asuming you know what divs are, is just make the "style" proporty(<div b]style=""[/b]>)
just make it: style="position:absolute"
good luck-hope it works
zach
mark4man
09-11-2003, 05:44 PM
zach,
I had to move beyond that, 'cause I came up with more graphic content.
I found a script of a traveling star field sized as an entire page, which I'm using as a background of sorts.
I placed my graphic content on top, in Layers.
Now all I have to figure out is how to center the Layers using CSS.
Thanks,
mark4man