HI There,
I have been struggling with JavaScript code for days now, and this is
my last resort! Please help...
I am trying to create a JavaScript slide show with links for Next
Slide, Previous Slide and Home Slide.
Is it possible for you to view my page and tell me what I am doing
wrong. I have looked at this page for hours and can't figure it out, I
must be missing something or have something in the wrong order, but
can't figure it out...please help....thanks. ..
I think I need someone to explain the EXACT code for this page as it
would appear in the page so it displays correctly.
If you can figure this out, I have 2 more I need help with too...
Thanks so much, Much appreciated...N eed a quick answer that will work!
Any ideas???? Can someone please tell me what I'm doing wrong, or what
I have missed out....
Here is my code:
<HTML>
<HEAD>
<TITLE>JavaScri pt Slide Show - PhotoAlbum</TITLE>
<SCRIPT LANGUAGE="JavaS cript">
var PhotoAlbum = new
Array("bunny_la dy.gif","busine ss_lady.gif","r unning_lady.gif ","color_lady.g if")
var PicIndex=1
var pictures=PhotoA lbum.length
function NextImage ( ) {
if (PicIndex < pictures) {
PicIndex++
}
document.ImgAlb um.src=PhotoAlb um[PicIndex-1]
}
function PreviousImage ( ) {
if (PicIndex > 1) {
PicIndex--
}
document.ImgAlb um.src=PhotoAlb um[PicIndex-1]
}
function home ( ) {
document.ImgAlb um.src=PhotoAlb um[0]
}
</SCRIPT>
</HEAD>
<BODY BACKGROUND=BACK 02.jpg TEXT=Blue>
<CENTER>
<H1 ALIGN=Center> The Vacation Photo Album</H1><BR>
<H3 ALIGN=Center> Click on Previous or Next to view pictures in my
Slide Show </H3><HR><HR>
<IMG SRC=bunny_purse .gif NAME= ImgAlbum Width=400 Height=270>
<BR>
<HR>
<A HREF="JavaScrip t:home ( ) ">[First Image]</A>
<A HREF="JavaScrip t:PreviousImage ( )">[Previous Image]</A>
<A HREF="JavaScrip t:NextImage ( )">[Next Image]</A>
</CENTER>
</BODY>
</HTML>
I have been struggling with JavaScript code for days now, and this is
my last resort! Please help...
I am trying to create a JavaScript slide show with links for Next
Slide, Previous Slide and Home Slide.
Is it possible for you to view my page and tell me what I am doing
wrong. I have looked at this page for hours and can't figure it out, I
must be missing something or have something in the wrong order, but
can't figure it out...please help....thanks. ..
I think I need someone to explain the EXACT code for this page as it
would appear in the page so it displays correctly.
If you can figure this out, I have 2 more I need help with too...
Thanks so much, Much appreciated...N eed a quick answer that will work!
Any ideas???? Can someone please tell me what I'm doing wrong, or what
I have missed out....
Here is my code:
<HTML>
<HEAD>
<TITLE>JavaScri pt Slide Show - PhotoAlbum</TITLE>
<SCRIPT LANGUAGE="JavaS cript">
var PhotoAlbum = new
Array("bunny_la dy.gif","busine ss_lady.gif","r unning_lady.gif ","color_lady.g if")
var PicIndex=1
var pictures=PhotoA lbum.length
function NextImage ( ) {
if (PicIndex < pictures) {
PicIndex++
}
document.ImgAlb um.src=PhotoAlb um[PicIndex-1]
}
function PreviousImage ( ) {
if (PicIndex > 1) {
PicIndex--
}
document.ImgAlb um.src=PhotoAlb um[PicIndex-1]
}
function home ( ) {
document.ImgAlb um.src=PhotoAlb um[0]
}
</SCRIPT>
</HEAD>
<BODY BACKGROUND=BACK 02.jpg TEXT=Blue>
<CENTER>
<H1 ALIGN=Center> The Vacation Photo Album</H1><BR>
<H3 ALIGN=Center> Click on Previous or Next to view pictures in my
Slide Show </H3><HR><HR>
<IMG SRC=bunny_purse .gif NAME= ImgAlbum Width=400 Height=270>
<BR>
<HR>
<A HREF="JavaScrip t:home ( ) ">[First Image]</A>
<A HREF="JavaScrip t:PreviousImage ( )">[Previous Image]</A>
<A HREF="JavaScrip t:NextImage ( )">[Next Image]</A>
</CENTER>
</BODY>
</HTML>
Comment