/    Sign up×
Community /Pin to ProfileBookmark

selecting from a table using prev / next

on my site i have a page with photo’s in a table.
by clicking on it is presented in a image at the top of the page.

i would like to place a prev and a next button underneat it so you can jump to the next photo instead of clicking on the photo.

i use the undeneat java script to present the small image in the table in the image at the top of the page

<script language=”JavaScript”>
<!–
function nph_change_img_src(name, nsdoc, rpath)
{
var img = eval((navigator.appName.indexOf(‘Netscape’, 0) != -1) ? nsdoc+’.’+name : ‘document.all.’+name);
if (name == ”) return;
if (img) { img.altsrc = img.src; img.src = rpath; }
void(window.top.location=’#top’)
}
// –>
</script>

undeneat is the link set for a photo that is in the table

<a href=”javascript:nph_change_img_src(‘nph_slide1’, ‘document’, ‘Perth/DSC00001.JPG’);”>

is it posible to difine a array using java that contains all the links as shown above. and use a prev / next button to select prev or next array.

thank you

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@vwphillipsJul 09.2005 — Think you are looking for a simple slide show

there are amny available on a search

one example

[URL]http://www.vicsjavascripts.org.uk/FramePicSSlideShow/Opener.htm[/URL]

the second of the featured scripts
×

Success!

Help @tom_keijmel spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...