Forum Moderators: not2easy

Message Too Old, No Replies

Image effects

java applets

         

dodo10

7:31 am on May 19, 2003 (gmt 0)

10+ Year Member



Hi guys, i don't known if i come in the right category for this question but if you could help me that would be helful. Ok, my question is how to make some image change over and over. i tried to used those code below that didn't work.

<APPLET CODE="ImageAnimator.class" WIDTH="32" HEIGHT="32">
<PARAM NAME="description" VALUE="Click here to visit my home page">
<PARAM NAME="hRef" VALUE="http://www.example.co.uk/">
<PARAM NAME="bgColor" VALUE="black">
<PARAM NAME="image0" VALUE="image1.jpg">
<PARAM NAME="image1" VALUE="image2.jpg">
<PARAM NAME="image2" VALUE="image3.jpg">
<PARAM NAME="image3" VALUE="image4.jpg">
<PARAM NAME="image4" VALUE="image5.jpg">
<PARAM NAME="loopAnimation" VALUE="true">
<PARAM NAME="delayTime" VALUE="500">
</APPLET>

[edited by: korkus2000 at 12:48 pm (utc) on May 19, 2003]
[edit reason] widgitized url [/edit]

richardb

12:29 pm on May 19, 2003 (gmt 0)

10+ Year Member



Hi dodo10

Never did any Java, so may not be any help but the time delay parameter is set to 500, how long are you waiting for for each image to change?

Also what is the file size of each of the images?
Also are the images names as the param value?

Rich

BlobFisk

1:36 pm on May 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you checked that the class file, imageAnimator.class, is in the same directory as your html page? And that the images are in the same directory also?

What sort of output are you seeing with this code?

limbo

2:49 pm on May 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could create an animated GIF using all the images - this is a sure fire way to get this to work but some users do disable animated GIFS beacuase of the high number of bad ones out there - but you can acomplish some very nice results with image rotation this way.

Also there are some good Javascript rotation codes with blend and morph style changes between images.

dodo10

8:52 pm on May 19, 2003 (gmt 0)

10+ Year Member



Well the thing is I don't known anything about java, i was looking in the web for a script that could help me did it and i find the script with some example, and i tried it that didn't worked. But if anyone could give me an idea how to or where can i find a software that could me do it that would be find.

BlobFisk

9:35 pm on May 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'd say that instead of going down the Java Applet route of animated gif (file size can get quite high) route, have a look at some JavaScripts that rotate through images.

A web search for this will bring back some nice results.

dodo10

10:54 pm on May 19, 2003 (gmt 0)

10+ Year Member



Thank You

kingkelly

3:49 pm on May 20, 2003 (gmt 0)

10+ Year Member



AnfyJava has lots of cool applets. Its a program that lets you customize the scripts and then generates the code for you. But for your own use, javascript would be better.