[Webkit-unassigned] [Bug 21061] background-image javascript rotation fails after initial load

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 26 15:08:17 PDT 2008


------- Comment #2 from eric at webkit.org  2008-09-26 15:08 PDT -------
  <script type="text/ecmascript"> 
        window.onload = function()
            var i = Math.ceil(Math.random()*3);
            var m = document.getElementById("main");
            m.style.backgroundImage = "url(images/front_background"+i+".jpeg)";
            // can tweak size as needed. images are mismatched 
            /*if (i==1) m.style.height = "360px";*/

is what loads the background images.  Works fine for me on the mac.  I even
cleared my cache to verify.  I guess someone could check on windows, but I
expect this is not a bug.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list