Results 1 to 4 of 4
Jul 27, 2007, 17:14 #1
OK, my brain has apparently stopped functioning. If I want the background image assigned to one div element to be assigned to another div element as part of a function, why doesn't the following work?
Thanks for any help!
Jul 27, 2007, 18:01 #2
To clarify, "test" is an object, and test.div and test.div2 were assigned to document.getElementById("test1") and document.getElementByID("test2")...
Jul 27, 2007, 20:52 #3
- Join Date
- Jan 2002
- 0 Post(s)
- 0 Thread(s)
I tried something similar and it worked (IE7 and FF2). It may be a scope issue (finding the test object), or you may not have correctly selected elements in your document.
If you're using Firefox with Firebug trying doing console.log(test) to see that all its properties are what you expect.
Jul 28, 2007, 07:31 #4
So, after much trial and error (mostly error), I have everything doing exactly what I want it to do (in Netscape 7, IE 7, and Firefox 2, anyway).