andreimazilu Posted February 9, 2012 Report Share Posted February 9, 2012 (edited) Salut sunt nou si sper ca am postat unde trebuie.Am facut un script javascript de slideshow si nu reusesc sa gasesc bug-ul de ce nu-mi arata pozele 2 si 4 si 8 in IEAcesta este scriptulvar myImage = document.getElementById("slide");var imageArray = ["images/poza_1_home.jpg","/images/poza_2_home.jpg","/images/poza_3_home.jpg","images/poza_4_home.gif","images/poza_5_home.jpg","images/poza_6_home.jpg","images/poza_7_home.jpg", "images/poza_8_home.jpg", "images/poza_9_home.jpg"];var imageIndex = 0;function changeImage() { myImage.setAttribute("src",imageArray[imageIndex]); imageIndex++; if (imageIndex >= imageArray.length) { imageIndex = 0; }}setInterval(changeImage,3000);mentionez ca acum invat javascript si orice sfat imi este necesar si binevenit.PS Daca am postat gresit rog a fi mutat si daca s-a mai pus intrebarea si eu am facut alt post rog a fi trimis unde trebuie:) Edited February 9, 2012 by andreimazilu Quote Link to comment Share on other sites More sharing options...
Xander Posted February 9, 2012 Report Share Posted February 9, 2012 din cate vad ar trebui sa mearga .... incearca direct cu myImage.src Quote Link to comment Share on other sites More sharing options...
Nytro Posted February 9, 2012 Report Share Posted February 9, 2012 Da, nici eu nu am idee, verifica daca acele imagini exista. Quote Link to comment Share on other sites More sharing options...
andreimazilu Posted February 9, 2012 Author Report Share Posted February 9, 2012 da problema e ca exista sunt denumite bine, in firefox merg dar in IE nu Quote Link to comment Share on other sites More sharing options...
Nytro Posted February 9, 2012 Report Share Posted February 9, 2012 Vezi Developer Tools din Internet Explorer, Tab-ul Script, dai Start Debugging. Ar trebui sa fie util. Quote Link to comment Share on other sites More sharing options...
darkston3e Posted February 9, 2012 Report Share Posted February 9, 2012 Poftim: https://addons.mozilla.org/en-US/firefox/addon/javascript-debugger/ , foloseste asta, iti va da o eroare destul de detaliata.P.S: Iti sugerez sa folosesti IE pentru a face teste, pentru ca eu nu cred ca ai compabilitatea necesara pentru a vedea scriptul actionand in firefox sau alte explorere.Incearca si un uninstall la java, si instaleazal dinou .. Quote Link to comment Share on other sites More sharing options...
Xander Posted February 9, 2012 Report Share Posted February 9, 2012 nu are nici o treaba java cu javascript ... Quote Link to comment Share on other sites More sharing options...