PDA

View Full Version : Swiss Army Image slide show - goto page at end



quantum503
05-20-2008, 07:53 AM
Hi

I'm not sure if this is the right place to post this query, but instead of the slide show stopping at the end I would like to automatically return to the referring URL, or any URL that I can hard code into the script.

Any idea how I could achieve this?

Thanks

Eric

jscheuer1
05-20-2008, 02:12 PM
Hi

I'm not sure if this is the right place to post this query, but instead of the slide show stopping at the end I would like to automatically return to the referring URL, or any URL that I can hard code into the script.

Any idea how I could achieve this?

Thanks

Eric

Just for your information, the proper way to 'piggyback' on an old thread is to start a new thread and link to the old one:

http://www.dynamicdrive.com/forums/showthread.php?t=18370

I've done that for you by moving your post to this new thread and providing the above link. Now, in post #4 of that old thread, we have several additions, including this one:


if(this.once&&this.nextimgidx==0&&!this.goagain){
var but=this.go('gostp'+this.issid)? this.go('gostp'+this.issid) : '';
this.gostop(but);
this.goagain=1
return;
}
this.goagain=0

If you make all of the additions in that post and do this one we are talking about here like this:


if(this.once&&this.nextimgidx==0&&!this.goagain){
var but=this.go('gostp'+this.issid)? this.go('gostp'+this.issid) : '';
this.gostop(but);
history.go(-1);
return;
}
this.goagain=0

Instead of stopping, it will return to the previous page.