• Das Erstellen neuer Accounts wurde ausgesetzt. Bei berechtigtem Interesse bitte Kontaktaufnahme über die üblichen Wege. Beste Grüße der Admin

ie 8 meldet fehler in function

Bexsta

New member
Hallo JayScriptler,

habe folgende Function die ab einer bestimmten ScrollHeight ausgeführt wird.

Code:
				trucks.style.width = trucks.offsetWidth + ((y_scroll - trucksScrollWidth) * 2 ) + "px";
				var trucksMarginLeft = trucks.style.marginLeft.replace("px","");
				trucks.style.marginLeft = trucksMarginLeft - (((y_scroll - trucksScrollWidth) / 2) * 2)  + "px";	
				
				
				var truckssizediff = trucks.offsetWidth * 100 / old_offsetWidth;
				trucks.style.height = truckssizediff * trucks.offsetHeight / 100 + "px";
				trucksMarginTop = trucks.style.marginTop.replace("px","");
				trucks.style.marginTop = trucksMarginTop + (y_scroll - trucksScrollWidth) *2;
				
				
				truck_sky.style.marginTop = truck_sky.style.marginTop.replace("px","") - ((y_scroll - trucksScrollWidth) / 3.2) + "px";	
				
				trucksScrollWidth = y_scroll;
				

				slogan_txt.style.visibility = "hidden";

IE 8 meldet das in ein Fehler vorliegt!?

Kann jemand auf anhieb sagen was nicht vom IE 8 Unterstützt wird?

PS: Im FF läufts ohne Probleme

Vielen Dank Bex
 
Zuletzt bearbeitet:
Zurück
Oben