• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

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

0
Amanda Watson
Asked:
Amanda Watson
  • 3
1 Solution
 
AmickCommented:
Change line 31 to var imgCt5 = 6;
0
 
Amanda WatsonAuthor Commented:
hmm, I am getting no rotation at all now see http://www.pressroomgraphics.com.au/
0
 
Amanda WatsonAuthor Commented:
my apologise, that worked thank you
0
 
mc10Commented:
Try var imgCt5 = 7;
0
 
Amanda WatsonAuthor Commented:
Thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now