Jump to content
andreimazilu

Problema Javascrispt

Recommended Posts

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 IE

Acesta este scriptul

var 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 by andreimazilu
Link to comment
Share on other sites

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 ..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...