My added image isn't showing in this javascript? What do I have to change in the javascript to show all 7 images?

This is the code, but my bottom image isn't showing
What do I have to change in the javascript to show all 7 images?
<script type="text/javascript"><!--
var imgs5 = new Array(
"http://www.pressroomgraphics.com.au/wp-content/uploads/pressroom-banner-2-final.jpg",
"http://www.pressroomgraphics.com.au/wp-content/uploads/pressroom-banner-4-final.jpg",
"http://www.pressroomgraphics.com.au/wp-content/uploads/pressroom-banner-5-final.jpg",
"http://www.pressroomgraphics.com.au/wp-content/uploads/pressroom-banner-6-final.jpg",
"http://www.pressroomgraphics.com.au/wp-content/uploads/pressroom-banner-7-final.jpg",
"http://www.pressroomgraphics.com.au/wp-content/uploads/pressroom-banner-8-final.jpg",
"http://www.pressroomgraphics.com.au/wp-content/uploads/pressroom-banner-9-final.jpg");

var lnks5 = new Array(
"http://www.pressroomgraphics.com.au/machines/laminating/1600-uv-liquid-laminator/",
"http://www.pressroomgraphics.com.au/machines/guillotines/touch-screen-double-hydraulic-double-guide-guillotine/",
"http://www.pressroomgraphics.com.au/machines/guillotines/480mm-guillotine/",
"http://www.pressroomgraphics.com.au/machines/guillotines/qzk1370/",
"http://www.pressroomgraphics.com.au/inks/",
"http://www.pressroomgraphics.com.au/machines/diecutting-creasing/auto-folder-creaser/",
"http://www.pressroomgraphics.com.au/machines/guillotines/ar670v-fullar-hydraulic-guillotine/");

var alt5 = new Array(
"1600MM UV Vanishing Machine",
"920MM Guillotine",
"480MM Guillotine",
"1370MM Guillotine",
"Matt UV Vanish Coating",
"Auto Folder Creaser",
"AR670V Fullar Hydraulic Gullotine");

var currentAd5 = 0;

var imgCt5 = 5;
function cycle5() {
if (currentAd5 == imgCt5) {
currentAd5 = 0;
}
var banner5 = document.getElementById('adBanner5');
var link5 = document.getElementById('adLink5');
banner5.src=imgs5[currentAd5]
banner5.alt=alt5[currentAd5]
document.getElementById('adLink5').href=lnks5[currentAd5]
currentAd5++;
}
window.setInterval("cycle5()",7000);
// -->
</script>

Open in new window

LVL 11
Amanda WatsonWeb DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AmickCommented:
Change line 31 to var imgCt5 = 6;
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Amanda WatsonWeb DeveloperAuthor Commented:
hmm, I am getting no rotation at all now see http://www.pressroomgraphics.com.au/
0
Amanda WatsonWeb DeveloperAuthor Commented:
my apologise, that worked thank you
0
mc10Commented:
Try var imgCt5 = 7;
0
Amanda WatsonWeb DeveloperAuthor Commented:
Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.