| Monte on Dec 29, 2009 at 4:44:18 AM (# 5) So, you want us to do your homework for you?
I'm sure you'll find your answer with CSS or the JavaScript DOM.
Google: change image background dynamically nhikee0725 on Dec 29, 2009 at 7:01:35 PM (# 6)well, not the whole work really,, but thanks, i'll try doing that nhikee0725 on Dec 29, 2009 at 7:18:27 PM (# 7)ok, so i've got the code already, just want to share it...
eg.
<INPUT type="button" onClick="document.body.background='bg.jpg'" name="colr" value=" WHITE "> <INPUT type="button" onClick="document.body.background='bg1.jpg'" name="colr" value=" BLACK " target="main">
so, on my example on the original text it is >> onClick="document.bgColor='#000000'"
then, you just change it to something like this >> onClick="document.body.background='bg.jpg'"
just incase this can help others. :) Monte on Dec 30, 2009 at 4:11:13 AM (# 8) This message has been edited.Great!
I'm glad you found the solution. And, that you had the courtesy to come back and share that solution.
Congratulations! Keep it up!
By the way...why is your teacher requiring you to use frames?
Did the teacher specify a specific size? If not, why not just use a zero-sized frame? It wouldn't technically be cheating...
|