html - JavaScript image array in NetBeans -


i new coder , newer stack please me out if question bad or not understandable! have been following number of tutorials on site , others on creating javascript slideshow gallery website project making school. have html written up, first image appear loaded through html, debug console keeps saying receiving empty responses when try run webpage through chrome connector. appears on site empty image holder.

i reckon it's either netbeans , file structure within project can't find files or code, i've tried every method i've seen load images array. wiped , loaded whole new set of images! no joy. can't figure out going on, every tutorial makes easy! file tree in netbeans basic , html , css files find images no problem! tried loading screenshot of file tree i'm not allowed. photos in folder called images in site root folder.

var bigpicturearray = [];  bigpicturearray[0]= new image(); bigpicturearray[0].src='images/cup1.jpe)'; bigpicturearray[1]= new image(); bigpicturearray[1].src='images/cf1.jpeg'; bigpicturearray[2]= new image(); bigpicturearray[2].src='images/cf2.jpg'; bigpicturearray[3]= new image(); bigpicturearray[3].src='images/cf3.jpg'; bigpicturearray[4]= new image(); bigpicturearray[4].src='images/cf4.jpeg'; bigpicturearray[5]= new image(); bigpicturearray[5].src='images/cf5.jpeg'; bigpicturearray[6]= new image(); bigpicturearray[6].src='images/cf6.jpeg'; bigpicturearray[7]= new image(); bigpicturearray[7].src='images/cf7.jpeg'; bigpicturearray[8]= new image(); bigpicturearray[8].src='images/cf8.jpeg'; bigpicturearray[9]= new image(); bigpicturearray[9].src='images/cf9.jpeg'; bigpicturearray[10]= new image(); bigpicturearray[10].src='images/cf10.jpeg';   //function display image slideshow // found on youtube @ https://www.youtube.com/watch?v=-mifpf7p1p0    var bpa_k = 0;    var bpa_elem;      function bpanext(){        bpa_k++;        bpa_elem.style.opacity = 0;       if(bpa_k > (bigpicturearray.length -1)){           bpa_k = 0;       }        settimeout("bpaslide()", 1500);    }    function bpaslide(){        bpa_elem.innerhtml=bigpicturearray[bpa_k];        bpa_elem.style.opacity = 1;        settimeout("bpanext()", 2000);    }    ////the tutorial used added html files load slideshow in script tags          <img src="cup1.jpe" id="bpa" alt="slideshow">     <script>        bpa_elem = document.getelementbyid("bpa");        bpaslide();     </script> 

again sorry if question mess or problem ridiculous. i've been looking @ long blind it! i'm missing basic thing!


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -