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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving Pictures : To set everytime starts from different pictures

Status
Not open for further replies.

doldol

MIS
Nov 25, 2001
214
SG
Hi.

I set a moving picture java applet and one problem is,
everytime it starts from the same picture.

For example, if you see this script,

<param name=&quot;images&quot; value=&quot;dog1.jpg|6,dog3.jpg|7,rabbit1.jpg|4,monkey5.jpg|10,dog5.jpg|10,
monkey1.jpg|6,monkey2.jpg|8,dog7.jpg|9,monkey3.jpg|5,monkey4.jpg|10&quot;>


the slide show starts from dog1.jpg and ends up with monkey4.jpg.

I want those pictures start and end randomly.

please help!


<APPLET CODE=ImageChanger.class WIDTH=288 HEIGHT=206 codebase=&quot;./&quot;>
<param name=&quot;images&quot; value=&quot;dog1.jpg|6,dog3.jpg|7,rabbit1.jpg|4,monkey5.jpg|10,dog5.jpg|10,
monkey1.jpg|6,monkey2.jpg|8,dog7.jpg|9,monkey3.jpg|5,monkey4.jpg|10&quot;>
<param name=&quot;fontShadowColor&quot; value=&quot;0&quot;>
<param name=&quot;fontBackColor&quot; value=&quot;202060&quot;>
<param name=&quot;target&quot; value=&quot;text1&quot;>
<param name=&quot;frame&quot; value=&quot;bottom&quot;>
<param name=&quot;autoLink&quot; value=&quot;true&quot;>
</APPLET>

 
Hi doldol
You may have more luck in the Java forum - forum269

Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs(y)<10) && (((parseInt(Math.abs(x).toString()+Math.abs(y).toString())-Math.abs(x)-Math.abs(y))%9)!=0)) {alert(&quot;I'm a monkey's uncle&quot;);}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top