Die Funktion wird bei onchange von einem FileUpload-Feld ausgelöst
Weiß jemand an was dass liegen könnte?
danke
Hier der Code:
``
function loadingPic()
{
var img1= document.getElementById('ctl07_img1').src ;
var img2= document.getElementById('ctl07_img2').src ;
var img3= document.getElementById('ctl07_img3').src ;
var img4= document.getElementById('ctl07_img4').src ;
if(img1=="http://wackeldackel/pix/one.jpg" || img1=="pix/one.jpg" )
{
document.getElementById('ctl07_img1').src="images/loading.gif";
}
else if (img2=="http://wackeldackel/pix/two.jpg"||img2=="pix/two.jpg")
{
document.getElementById('ctl07_img2').src="images/loading.gif";
}
else if (img3=="http://wackeldackel/pix/three.jpg"||img3=="pix/three.jpg")
{
document.getElementById('ctl07_img3').src="images/loading.gif";
}
else if (img4=="http://wackeldackel/pix/four.jpg"||img4=="pix/four.jpg")
{
document.getElementById('ctl07_img4').src="images/loading.gif";
}
document.getElementById('ctl07_btnUpload').click();
}