Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing image without reloading the page

Status
Not open for further replies.

tjbradford

Technical User
Dec 14, 2007
229
GB
I have a piece of code that give's rain droplets on the image stated in the code, but i would like to be able to change the image - eg cycle through anumber of images without having to load duplicate files, which is currently what i do


code starts :

<body bgcolor="black"><center><body background="tray.jpg" bgproperties=fixed><br><br><br><br><br><br><br>
<META HTTP-EQUIV="refresh" CONTENT="40; URL=http://testsite/raining-2.html">
<applet archive="AnWater.jar" code="AnWater.class" width="640" height="480" />
<param name="credits" value="Applet by Fabio Ciucci ( />
<param name="regcode" value="NO" /> ; Registration code (if you have it)
<param name="reglink" value="NO" />" /> ; Optional URL link when applet is "clicked".
<param name="regnewframe" value="NO" /> ; Reglink opened in new frame?
<param name="regframename" value="_blank" /> ; Name of new frame for reglink
<param name="statusmsg" value="Water applet" />; Statusbar message
<param name="image" value="portfolio-1.jpg" /> ; Image to load
<param name="res" value="1" /> ; resolution (1 .. 8)
<param name="light" value="NO" /> ; Light effects ("YES" or "NO")
<param name="minlight" value="0" /> ; Lowest light (-255 .. 255)
<param name="maxlight" value="100" /> ; Highest light (-255 .. 255)
<param name="autodesign" value="NO" /> ; Auto design ("YES" or "NO")
<param name="density" value="6" /> ; Density of fluid (2 .. 6)
<param name="fishnum" value="0" /> ; Number of fishes (0 .. 2)
<param name="cross" value="NO" /> ; Cross effect ("YES" or "NO")
<param name="crossfactor" value="3" /> ; Factor of cross effect
<param name="rainsize" value="10" /> ; Size of circular rain (0 = OFF)
<param name="rainfactor" value="2" /> ; Circular rain factor
<param name="srainsize" value="0" /> ; Size of square rain (0 = OFF)
<param name="srainfactor" value="1" /> ; Square rain factor
<param name="fixdrop" value="NO" /> ; Fixed drops ("YES" or "NO")
<param name="fixdropX" value="10" /> ; X coord of fixed drops
<param name="fixdropY" value="10" /> ; Y coord of fixed drops
<param name="fixdropS" value="1" /> ; Size of fixed drops
<param name="fixdropF" value="1" /> ; Factor of fixed drops
<param name="pressure" value="25" /> ; Rain pressure (1 .. 2000)
<param name="fluidmode" value="water" /> ; Fluidity ("water" or "oil")
<param name="interactive" value="YES" /> ; Interaction ("ON" .. "OFF")
<param name="overimg" value="none-frangipanni.gif" /> ; Optional image over applet
<param name="overimgX" value="0" /> ; Over image X offset
<param name="overimgY" value="0" /> ; Over image Y offset
<param name="memdelay" value="1000" /> ; Memory deallocation delay
<param name="priority" value="3" /> ; Task priority (1..10)
<param name="MinSYNC" value="10" /> ; Min. milliseconds/frame for sync Sorry, your browser doesn't support Java. ; Message for no java browsers.
</applet />

code ends :


as you can see i'm doing some really crude html poo to get it sort of working but it's along way from ideal.

how can i best achieve this ?

many thanks
Terry
 
Hi

There is absolutely no JavaScript involved. ( As far as I know, is not even possible to involve it that way. ) So this question is off-topic here.

As the Anfy Water instruction mentions no way to change the image after starts running, implementing it would probably require reverse engineering the class and violating the copyright.


Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top