XHTMLforum

XHTMLforum (http://xhtmlforum.de/index.php)
-   Javascript & Ajax (http://xhtmlforum.de/forumdisplay.php?f=83)
-   -   Background-Position im Strict Mode IE vs FF vs sonstwas (http://xhtmlforum.de/showthread.php?t=59069)

tichy 04.11.2009 16:13

Background-Position im Strict Mode IE vs FF vs sonstwas
 
Tag,
ich hab hier einen kleinen Codeschnipsel der das Hintergrundbild eines
DIV bewegt.

Im FireFox = funktioniert, nur im Strict Mode nicht
Im IE = funktioniert NUR im Strict Mode

Hmmm, sage ich mir da und erfrage was es damit auf sich hat, bzw:
wo kann ich nachlesen welche JS/CSS sachen im Strict funktionieren und welche nicht.

hier der Code Schnipsel
Code:

<script type="text/javascript">

var speed=100; //This is the speed of scrolling.
var num=0;
var bgOb=eval('document.getElementById("stage")')
function scrollBG()
{
num++;
bgOb.style.backgroundPosition="0"+num;
}
setInterval('scrollBG()',speed)



</script>


protonenbeschleuniger 05.11.2009 11:40

In der Fehlerkonsole vom Fx steht auch warum es nicht funktioniert.


Alle Zeitangaben in WEZ +2. Es ist jetzt 10:14 Uhr.

Powered by vBulletin® Version 3.8.11 (Deutsch)
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

© Dirk H. 2003 - 2023