Ich weiß da nicht mehr weiter , das Phänomen tritt jetzt schon bei einfachen Rollover auf ...
Die Seite wird korrekt angezeigt, nur die Scripts laufen einfach nicht !
Beiträge von webMichel
-
-
Keine Ahnung warum mein Firefox seiten mit Javascript nicht ordnungsgemäß darstellt. Auf meinen Notebook, gleiche Version, funktioniert alles fehlerfrei. Auch die Erweiterten Einstellungen sind identisch. Nicht das jetzt einer meint, javascript wäre abgestellt ...
Kann mir jemand helfen ... ???
-
Hallo Zusammen,
mal was ganz spannendes, auf einen von unseren 6 rechner läuft das folgende Javascript nicht im Firefox, trotz allen aktualisierungen, version 2.0.0.2 usw. auf allen anderen absolut problemlos. nun habe ich von einem anderen firefox user mit dem gleichen problem gehört ...
Vieleicht kann mir einer weiterhelfen ...Das Script wird zum austauschen von grafiken mit onclick() benutzt und wird in einem votingsystem eingesetzt ...
--------------
<SCRIPT>img0 = new Image();
img1 = new Image();
img2 = new Image();
img3 = new Image();
img4 = new Image();
img5 = new Image();
img6 = new Image();
img7 = new Image();
img8 = new Image();
img9 = new Image();
img10 = new Image();
img11 = new Image();
img12 = new Image();
img0.src = "./platz0.gif";
img1.src = "./pos1.gif";
img2.src = "./pos2.gif";
img3.src = "./pos3.gif";
img4.src = "./pos4.gif";
img5.src = "./pos5.gif";
img6.src = "./pos6.gif";
img7.src = "./pos7.gif";
img8.src = "./pos8.gif";
img9.src = "./pos9.gif";function vote (tnr,pnr,tg)
{
var temp_img,temp_platz,feld_titel,feld_platz;
var wert_count=0,wert_platz,wert_titel,wert_last=0;
var i,f;feld_titel = "titel["+tnr+"]";
feld_platz = "platz["+pnr+"]";wert_platz = window.document.forms["platzierung"].elements[feld_platz].value;
wert_titel = window.document.forms["platzierung"].elements[feld_titel].value;
wert_count = window.document.forms["platzierung"].elements["counter"].value;
wert_last = wert_count-1;if (wert_platz==0) {
if (wert_titel==0) {
for (i=1; i<=tg; i++) {
temp_img = "img"+i+"_"+pnr;
window.document.images[temp_img].src=img0.src;
}
for (f=1; f<=tg; f++) {
temp_img = "img"+tnr+"_"+f;
window.document.images[temp_img].src=img0.src;
}
temp_platz = "imgplatz"+tnr;
if (pnr==1) window.document.images[temp_platz].src=img1.src;
if (pnr==2) window.document.images[temp_platz].src=img2.src;
if (pnr==3) window.document.images[temp_platz].src=img3.src;
if (pnr==4) window.document.images[temp_platz].src=img4.src;
if (pnr==5) window.document.images[temp_platz].src=img5.src;
if (pnr==6) window.document.images[temp_platz].src=img6.src;
if (pnr==7) window.document.images[temp_platz].src=img7.src;
if (pnr==8) window.document.images[temp_platz].src=img8.src;
if (pnr==9) window.document.images[temp_platz].src=img9.src;wert_count++;
window.document.forms["platzierung"].elements[feld_platz].value=tnr;
window.document.forms["platzierung"].elements[feld_titel].value=pnr;
window.document.forms["platzierung"].elements["counter"].value=wert_count;
}
}
}</SCRIPT>