JavaScript Help
1272 cr points
Send Message: Send PM GB Post
28 / M / Top shelf, aisle...
Offline
Posted 11/26/07
Using the following script:

<HTML>
<HEAD>
<SCRIPT>
imgArray=new Array(3);
imgArray[0]=new Array;
imgArray[0]="http://www.freedigitalphotos.net/image/s_monopoly-house.jpg";
imgArray[1]=new Array;
imgArray[1]="http://www.amog.com.au/user/images/blast.JPG";
imgArray[2]=new Array;
imgArray[2]="http://www.deskpicture.com/DPs/Miscellaneous/AtomicBlast.jpg";
index=0;

function doBack()
{ if(index>0)
{index--;
document.slideshow.src=imgArray[index].src;}
return;}

function doNext()
{ if(index<0)
{index++;
document.slideshow.src=imgArray[index].src;}
return;}

</SCRIPT>
</HEAD>
<BODY>
<IMG SRC="http://www.freedigitalphotos.net/image/s_monopoly-house.jpg"
NAME="slideshow"
WIDTH=500
HEIGHT=400>
<P>
<H3>
<A HREF=javascript:doBack()>BACK</A>
&emsp; &emsp;
<A HREF=javascript:doNEXT()>NEXT</A>
</H3>
</BODY>
</HTML>

How would i go about causing it to cycle manuelly using the function cycle(), like how to when you reach the last image you click next and go back tot he first image, and vice versa? Thx a lot for any help i can get!
15175 cr points
Send Message: Send PM GB Post
29 / F / 603407~ thanks BK!
Offline
Posted 11/26/07
im not good with this ~_~
well, you can ask in this thread...
http://www.crunchyroll.com/showforumtopic?id=1291
10900 cr points
Send Message: Send PM GB Post
M / no code to escape...
Offline
Posted 11/26/07
Use the help thread...srry i cant provide it though...this thread is personal. Plus puttin that makes it a bit complicated as shown above with the pics lol
Posted 11/26/07
are you putting this in ur crunchyroll profile? o.o because i dont think it works...
46535 cr points
Send Message: Send PM GB Post
Offline
Posted 11/26/07
You must be logged in to post.